Part Number Hot Search : 
PQ09R03 1H100 AD8519 LA6583M 17000 ON0909 PT78N CP20147H
Product Description
Full Text Search
 

To Download CAP1114-1-EZK-TR Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  smsc cap1114 datasheet revision 1.1 (02-04-11) datasheet product features cap1114 multiple channel capacitive touch sensor and led driver general description the cap1114, which incorporates smscs righttouch tm 1 technology, is a multiple channel capacitive touch sensor and led driver. the cap1114 contains up to fourteen (14) individual capacitive touch sensor inputs with programmable sensitivity for use in touch button and slider switch applications. each sensor also contains automatic recalibration with programmable time delays. the cap1114 also includes internal circuitry to compensate for design and parasitic variance in un- touched capacitance on sensors. the cap1114 also contains eleven (11) low side led drivers that offer full-on / off, variable rate blinking, dimness controls, and breathing. capacitive buttons can be linked to led outputs. applications ? consumer electronics ? desktop and notebook pcs ? lcd monitors features ? fourteen (14) capacitive touch sensor inputs compensates for variable sensor capacitance programmable sensitivity high snr allows for easy tuning automatic recalibration slider acceleration detection slider positional detection proximity detection ? lid closure detection ? low power operation 4.5ua quiescent current in deep sleep 200ua quiescent current in sleep while monitoring 1 button ? alert to signal touch to host processor ? user controlled reset ? low external component count ? smbus 2.0 compliant interface to change operating parameters to work in a wide variety of systems block read and write function for quick tasking ? eleven (11) led driver outputs programmable blink, breathe, and dimness controls 8 configurable as gpios buttons can be linked to led responses ? development boards and software available ? available in 32-pin 5mm x 5mm qfn lead-free rohs compliant package block diagram 1. smsc and the smsc logo are registered trademarks and smsc righttouch and the righttouch logo are trademarks of standard microsystems corporation (smsc). smbus slave protocol smclk smdata vdd gnd alert capacitive sensing algorithm led blink, breathe, and dimness control led1 led2 led3 led4 led5 led6 led7 led8 led9 led10 led11 cs1 cs2 cs3 cs4 cs5 cs6 cs7 cs8 cs9 cs10 cs11 cs12 cs13 cs14 reset downloaded from: http:///
reel size is 4,000 pieces this product meets the halogen maximum concentration values per iec61249-2-21 for rohs compliance and environmen tal information, please visit www.smsc.com/rohs please contact your smsc sales representative fo r additional documentation related to this product such as application notes, anomaly sheets, and design guidelines. ordering number package features CAP1114-1-EZK-TR 32-pin qfn 5mm x 5mm (lead free rohs compliant) fourteen capacitive touch sensors. eleven led drivers. smbus communications. multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 2 smsc cap1114 datasheet copyright ? 2010 smsc or its subsidiaries. all rights reserved. circuit diagrams and other information relating to smsc produc ts are included as a means of illustrating typical applications. consequently, complete information sufficient for construction purposes is not necessarily given. although the information has been checked and is believed to b e accurate, no re sponsibility is assumed for inaccuracies. smsc reserves the right to make changes to specifications and produc t descriptions at any time without notice. contact your local sm sc sales office to obtain the latest specifications before placing your product order. the provision of this inform ation does not convey to the purchaser of the described semicond uctor devices any licenses under any patent rights or other intellectual property rights of smsc or others. all sales are expr essly conditional on your agreement to the te rms and conditions of the most recently dated version of smsc's standard terms of sale agreement dated before the date of your order (the "terms of sale agreement"). the pro duct may contain design defects or errors known as anomalies which may cause the product's functions to deviate from published specifications . anomaly sheets are availab le upon request. smsc products are not designed, intended, authorized or warranted for use in any life support or other applicati on where product failure could cause or contribute to personal injury or severe property damage. any and all such uses without prior written approval of an officer of smsc and furthe r testing and/or modification will be fully at the risk of the customer. copies of this document or other smsc literature, as well as the terms of sale agreement, may be obtai ned by visiting smscs website at h ttp://www.smsc.com. smsc is a registered trademark of standard microsystems corporat ion (smsc). product names and company na mes are the trademarks of their respective holders. the microchip name and logo, and the microchip logo are registered trademarks of microchip technolo gy incorporated in the u.s.a . and other countries. smsc disclaims and excludes any and all warrant ies, including without limi tation any and all implied warranties of merchantabil ity, fitness for a particular purpose, title, a nd against infringement and the like, and any and all warranties arising from any cou rse of dealing or usage of trade. in no event shall smsc be liable for any direct, incidental, indi rect, special, punitive, or cons equential damages; or for lost data, profits, savings or revenues of any kind; regardless of the form of action, whether based on contrac t; tort; negligence of smsc or others; strict liability; breach of wa rranty; or otherwise; whether or not any remedy of buyer is h eld to have failed of its essential purpose, and whether or not smsc has been advised of the possibility of such damages. order number(s): downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 3 revision 1.1 (02-04-11) datasheet table of contents chapter 1 delta from cap1014 to cap1114 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1 summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 register delta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 chapter 2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 chapter 3 electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 chapter 4 communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1 system management bus protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.1 smbus start bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.2 smbus address and rd / wr bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.3 smbus data bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.4 smbus ack and nack bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.5 smbus stop bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.6 smbus time-out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.7 smbus and i 2 c compliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.2 smbus protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.2.1 smbus write byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.2.2 block write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2.3 smbus read byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2.4 block read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2.5 smbus send byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2.6 smbus receive byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 chapter 5 product description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.1 power states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.2 reset pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.3 led drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.3.1 linking leds to capacitive touch sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.4 capacitive touch sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.4.1 multiple button presses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.2 lid closure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.3 grouped sensors (cs8 - cs14) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.4 sensing cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.5 proximity detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.6 recalibrating sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.7 low frequency noise detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.8 rf noise detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.5 grouped sensor behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.5.1 tap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.5.2 press and hold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.5.3 slider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.5.4 relative position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.5.5 slider velocity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.6 ungrouped sensor behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.6.1 cs9 - cs13 ungrouped behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.6.2 cs8 and cs14 ungrouped behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.7 alert pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.7.1 button interrupt behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.7.2 grouped sensor interrupt behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 4 smsc cap1114 datasheet 5.7.3 wake from deep sleep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 chapter 6 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6.1 main status control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.2 button status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 6.2.1 button status 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 6.2.2 button status 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.3 build revision register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.4 slider position / volume tric data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.4.1 absolute position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 6.4.2 volumetric data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 6.5 vendor id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 6.6 volumetric step register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 6.7 noise status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 6.8 lid closure status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.9 gpio status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.10 group status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.11 sensor delta count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.12 queue control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.13 data sensitivity registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.14 configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.15 sensor enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.16 button configuration register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 6.17 group configuration register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.18 group configuration register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.19 calibration enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.20 calibration activate registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.20.1 calibration activate - 26h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 6.20.2 grouped sensor calibration activate - 46h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 6.21 interrupt enable registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.21.1 interrupt enable 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.21.2 interrupt enable 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.22 sleep channel control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 6.23 multiple touch configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 6.24 lid closure configuration register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 6.25 lid closure queue control register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 6.26 lid closure pattern registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 6.27 recalibration configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 6.28 sensor threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 6.29 button noise threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 6.29.1 button noise threshold 1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 6.29.2 button noise threshold 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6.30 lid closure threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6.30.1 lid closure threshold 1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6.30.2 lid closure threshold 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.30.3 lid closure threshold 3 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.30.4 lid closure threshold 4 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.31 slider velocity configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.32 digital recalibration control register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.33 configuration 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 6.34 grouped sensor channel enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 6.35 proximity control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 6.36 sampling channel select register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 6.37 sampling configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 6.38 sensor base count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 5 revision 1.1 (02-04-11) datasheet 6.39 led status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.39.1 led status 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.39.2 led status 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.40 led / gpio direction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.41 led / gpio output type register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.42 gpio input register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.43 led output control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.43.1 led output control 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.43.2 led output control 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.44 led polarity registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.44.1 led polarity 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.44.2 led polarity 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.45 linked led transition control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 6.45.1 linked led transition control 1 - 77h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 6.45.2 linked led transition control 2 - 78h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 6.46 led mirror control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 6.46.1 led mirror control 1 - 79h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 6.46.2 led mirror control 2 - 7ah . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.47 sensor led linking register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.48 led behavior registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.48.1 led behavior 1 - 81h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.48.2 led behavior 2 - 82h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.48.3 led behavior 3 - 83h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.49 led pulse 1 period register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 6.50 led pulse 2 period register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 6.51 led breathe period register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.52 led configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.53 led pulse and breathe duty cycle registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 6.54 led direct ramp rates register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 6.55 led off delay register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 6.56 sensor calibration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 6.57 product id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 6.58 revision register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 chapter 7 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 7.1 package drawings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 7.2 package marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 chapter 8 datasheet revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 6 smsc cap1114 datasheet list of figures figure 2.1 cap1114 pin diagram (32-pin qfn). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 4.1 smbus timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 figure 5.1 system diagram for cap1114 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 5.2 button interrupt behavior - repeat rate enabled (d efault) . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 5.3 button interrupt behavior - no repeat rate enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 5.4 tap interrupt behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 5.5 press and hold interrupt behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 5.6 slide interrupt behavior - no acce leration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 5.7 slide interrupt behavior - accelera tion example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 6.1 pulse 1 behavior with touch trigger and non-invert ed polarity . . . . . . . . . . . . . . . . . . . . . . 87 figure 6.2 pulse 1 behavior with touch trigger and inverted po larity . . . . . . . . . . . . . . . . . . . . . . . . . . 87 figure 6.3 pulse 2 behavior with non-inverted polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 figure 6.4 pulse 2 behavior with inverted po larity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 6.5 direct behavior for non-inverted po larity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 6.6 direct behavior for inverted polari ty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 7.1 package diagram - 32-pin qfn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 figure 7.2 package dimensions - 32-pin qfn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 7.3 package pcb land pattern and stencil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 8 figure 7.4 package detail a - stencil opening and perimeter l ands. . . . . . . . . . . . . . . . . . . . . . . . . . . 98 figure 7.5 package detail b - thermal vias and stencil openin g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 7.6 package land pattern dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 7.7 package markings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 7 revision 1.1 (02-04-11) datasheet list of tables table 1.1 register delta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 2.1 pin description for cap1114 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 2.2 pin types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 3.1 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 3.2 electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 4.1 protocol format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 4.2 write byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 4.3 block write protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 4.4 read byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 4.5 block read protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 4.6 send byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 4.7 receive byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 5.1 power states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 6.1 register set in hexadecimal order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 6.2 main status control register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 6.3 button status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 6.4 build revision register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 6.5 slider position / volumetric data register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 6.6 example slider absolute position de code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 table 6.7 vendor id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 6.8 volumetric step register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 6.9 noise status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 6.10 lid closure status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 6.11 gpio status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 6.12 group status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 table 6.13 sensor delta count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 table 6.14 queue control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 6.15 queue_b bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 6.16 data sensitivity register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 6.17 delta_sense bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 6.18 base_shift bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 6.19 configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 6.20 sensor enable register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 6.21 button configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 6.22 max_dur_b and max_dur_g bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 6.23 rpt_rate_b / sl / ph bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 6.24 group configuration register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 6.25 m_press bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 6.26 group configuration register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 6.27 calibration enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 6.28 calibration activate registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 6.29 interrupt enable registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 6.30 sleep channel control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 6.31 multiple touch configuration register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 6.32 b_mult_t bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 6.33 g_mult_t bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 6.34 lid closure configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 6.35 lid closure queue control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 6.36 lid closure pattern registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 table 6.37 recalibration configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 table 6.38 neg_delta_cnt bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 table 6.39 cal_cfg bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 6.40 sensor threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 8 smsc cap1114 datasheet table 6.41 button noise threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 6.42 csx_bn_th bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 6.43 lid closure threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 6.44 csx_ld_th bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 6.45 slider velocity configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 6.46 max_int bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 6.47 slide_time bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 6.48 rpt_scale bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 6.49 digital recalibration control regi ster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 6.50 configuration 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 6.51 grouped sensor channel enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 6.52 proximity control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 table 6.53 prox_avg bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 table 6.54 sampling channel select register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 6.55 sampling configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 6.56 oversamp_rate bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 6.57 sensor base count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 6.58 led status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 6.59 led / gpio direction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 6.60 led / gpio output type register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 6.61 gpio input register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 6.62 led output control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 6.63 led polarity registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 6.64 led polarity behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 6.65 linked led transition control registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 table 6.66 led mirror control registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 6.67 sensor led linking register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 6.68 led behavior registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 6.69 ledx_ctl bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 6.70 led pulse 1 period register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 6.71 led pulse / breathe period example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 6.72 led pulse 2 period register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 6.73 led breathe period register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 6.74 led configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 6.75 pulse_cnt decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 6.76 led period and breathe duty cycle registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 6.77 led duty cycle decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 6.78 led direct ramp rates register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 6.79 rise / fall rate cycle decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 6.80 led off delay register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 6.81 off delay settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 6.82 sensor calibration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 6.83 product id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 6.84 revision register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 8.1 customer revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 9 revision 1.1 (02-04-11) datasheet chapter 1 delta from cap1014 to cap1114 1.1 summary 1. updated circuitry to reduce sens itivity to power supply stepping. 2. updated led pulse 1 behavior. this function may be triggered on button press or on release. see section 6.49 . 3. updated product id to 3ah. 4. updated led behavior for host control during direct mode when not linked. the led output register will now be able to be written to emulat e a touch or release. enables all behaviors while in host mode. see section 6.43 and section . 5. updated recalibration controls to add negative delta count. see section 6.27 . 6. removed acal_rt bits. 7. added digital controls to disable the slider func tionality but still detect basic touches essentially bypassing the slider algorithms entirely. see section 6.33 . 8. added controls to enable individual buttons in the slider. see section 6.34 . 9. updated button interrupt schemes to allow inte rrupt on press only, not on release. retained previous behavior as default. see figure 5.2 , figure 5.3 , and section 5.7.1 . retained previous behavior as default. see section 6.27 . 10. updated noise threshold default settings to ~25%. see section 6.29 . 11. added control bit and status registers to enable interrupt when leds finish their directed behavior in the same fashion. see section 6.52 and section 6.39 . 12. updated led driver duty cycle decode values to have more distribution at lower values - closer to a logarithmic curve. see section 6.53 . 13. renamed d_dsp[3:0] and c_d sp[3:0] to delta_sense[2:0] and base_shift[ 3:0]. d_dsp[3] did nothing so removed references. see section 6.13 . 14. added filtering on reset pin to prevent errant resets. the reset pin must be high or low for longer than 10ms before it will be detected by the device. see section 8.6 . 15. added proximity to cs1 channel. 16. updated deep sleep to wake on communications. see section 5.1 . 17. updated controls so that the reset pin assertion places the dev ice into the lowest power state available. see section 5.2 and section 5.1 . 18. added led transition controls that affect the led behavior when a capacitive touch sensor is linked to an led channel to remove bouncing. see section 6.45 . 19. added controls to mirror the led duty cycle out puts so that when polarity changed, the led brightness levels look right. see section 6.46 . 20. added register to force digital recalibration of all sensors. see section 6.32 . 21. added register to enable oversampling on specific sensors. see section 6.35 and section 6.37 . 22. changed pwm frequency for led drivers. the pwm frequency was derived from the programmed breathe period and duty cycle settings and it ra nged from ~4hz to ~8000 hz. the pwm frequency has been updated to be a fixed value of ~2000hz. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 10 smsc cap1114 datasheet 1.2 register delta table 1.1 register delta address register delta delta default 05h changed - build revision reset build revision to 10h 10h 20h changed - configuration changed functionality of rpt_en_b bit. changed default 29h 2fh changed - recalibration configuration removed acal_rt[1:0] bits and replaced with neg_cnt[1:0] bits. these bits control recalibration when negative counts are received. 93h 38h changed - button noise threshold 1 changed default aah 39h changed - button noise threshold 2 changed default aah 3fh new - digital recalibration new register to force digital recalibration on all sensors 00h 40h new - configuration 2 new regi ster to control led touch linking behavior, led output behavior, and noise detection, and interrupt on release 00h 41h new - grouped channel sensor enable new register to enable individual sensors within the grouped sensors 7fh 42h new - proximity control new register to enable / configure proximity settings on cs1 02h 46h new - group button calibration activate new register to force calibration on individual grouped sensors 00h 4eh new - sampling channel select new register to select which channels can be controlled via the sampling configuration register 00h 60h new - led status 1 new register to store status for leds that have finished their programmed behavior 00h 61h new - led status 2 new register to store status for leds that have finished their programmed behavior 00h 77h new - linked led transition control 1 new register to control transition effect when led linked to cs sensor 00h 78h new - linked led transition control 2 new register to control transition effect when led linked to cs sensor 00h 79h new - led mirror control 1 new register to control led output mirroring for brightness control when polarity changed 00h 7ah new - led mirror control 2 new register to control led output mirroring for brightness control when polarity changed 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 11 revision 1.1 (02-04-11) datasheet 90h changed - led pulse 1 duty cycle changed bit decode to be more logarithmic f0h 91h changed - led pulse 2 duty cycle changed bit decode to be more logarithmic f0h 92h changed - led breathe duty cycle changed bit decode to be more logarithmic f0h 93h changed - led direct duty cycle changed bit decode to be more logarithmic f0h fdh changed - product id changed bit decode for cap1114 3ah feh added - manufacturer id added - this register mirrors the vendor id 5dh table 1.1 register delta (continued) address register delta delta default downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 12 smsc cap1114 datasheet chapter 2 pin description figure 2.1 cap1114 pin diagram (32-pin qfn) table 2.1 pin description for cap1114 pin number pin name pin function pin type 1 cs8 capacitive touch sensor 8 aio 2 cs9 capacitive touch sensor 9 aio 3 cs10 capacitive touch sensor 10 aio 4 cs11 capacitive touch sensor 11 aio 5 cs12 capacitive touch sensor 12 aio 6 cs13 capacitive touch sensor 13 aio 7 cs14 capacitive touch sensor 14 aio 1 2 3 4 5 6 7 24 23 22 21 20 19 18 32 31 30 29 28 27 26 9 10 11 12 13 14 15 cs8 led1 / gpio1 cs9 cs10 cs11 led2 / gpio2 led3 / gpio3 cs12 cs13 cs14 led4 / gpio4 led5 / gpio5 led6 / gpio6 cs6 cs5 cs4 cs3 cs2 led7 / gpio7 led10 led9 led8 / gpio8 smclk alert smdata cs7 vdd led11 8 16 17 25 gnd reset n/c n/c cs1 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 13 revision 1.1 (02-04-11) datasheet 8 vdd positive power supply power 9 led1 / gpio1 led1 - open drain led driver (default) od (5v) gpi1 - gpio 1 input di (5v) gpo1 - gpio 1 push-pull output do 10 led2 / gpio 2 led2 - open drai n led driver (default) od (5v) gpi2 - gpio 2 input di (5v) gpo2 - gpio 2 push-pull output do 11 led3 / gpio3 led3 - open drain led driver (default) od (5v) gpi3 - gpio 3 input di (5v) gpo3 - gpio 3 push-pull output do 12 led4 / gpio4 led4 - open drain led driver (default) od (5v) gpi4 - gpio 4 input di (5v) gpo4 - gpio 4 push-pull output do 13 led5 / gpio5 led5 - open drain led driver (default) od (5v) gpi5 - gpio 5 input di (5v) gpo5 - gpio 5 push-pull output do 14 led6 / gpio6 led6 - open drain led driver (default) od (5v) gpi6 - gpio 6 input di (5v) gpo6 - gpio 6 push-pull output do 15 led7 / gpio7 led7 - open drain led driver (default) od (5v) gpi7 - gpio 7 input di (5v) gpo7 - gpio 7 push-pull output do 16 led8 / gpio8 led8 - open drain led driver (default) od (5v) gpi8 - gpio 8 input di (5v) gpo8 - gpio 8 push-pull output do 17 led9 led9 - open drain led driver od (5v) 18 led10 led10 - open drain led driver od (5v) 19 led11 led11 - open drain led driver od (5v) 20 alert active high interrupt / wake up input dio 21 smdata bi-directional smbus data - requires a pull-up resistor diod (5v) 22 smclk smbus clock input - requires a pull-up resistor di (5v) 23 reset soft reset for system - resets all registers to default values di (5v) table 2.1 pin description for cap1114 (continued) pin number pin name pin function pin type downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 14 smsc cap1114 datasheet the pin types are described in table 2.2, "pin types" . all pins labeled with (5v) are 5v tolerant. note: for all 5v tolerant pins that require a pull-up resistor, the voltage difference between vdd and the pull-up voltage must never exceed 3.6v. 24 n/c not connected - connect to gnd n/a 25 n/c not connected - connect to gnd n/a 26 cs1 capacitive touch sensor 1 aio 27 cs2 capacitive touch sensor 2 aio 28 cs3 capacitive touch sensor 3 aio 29 cs4 capacitive touch sensor 4 aio 30 cs5 capacitive touch sensor 5 aio 31 cs6 capacitive touch sensor 6 aio 32 cs7 capacitive touch sensor 7 aio bottom plate gnd power ground power table 2.2 pin types pin type description power this pin is used to supply power or ground to the device. di digital input - this pin is used as a digital input. this pin is 5v tolerant. dio digital input output - this pin is used as a digital input / output. aio analog input / output - this pin is used as an i/o for analog signals. diod digital input / open drain output - this pin is used as an digital i/o. when it is used as an output, it is open drain and requires a pull-up resistor. this pin is 5v tolerant. od open drain digital output - this pin is used as a digital output. it is open drain and requires a pull-up resistor. this pin is 5v tolerant. do push-pull digital output - this pin is used as a digital output and can sink and source current. table 2.1 pin description for cap1114 (continued) pin number pin name pin function pin type downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 15 revision 1.1 (02-04-11) datasheet chapter 3 electrical specifications note: stresses above those listed could cause permane nt damage to the device. this is a stress rating only and functional operation of the devic e at any other condition above those indicated in the operation sections of this specification is not implied. note 3.1 for the 5v tolerant pins that have a pull-up resistor, the pull-up voltage must not exceed 3.6v when the device is unpowered. note 3.2 the package power dissipation specification assumes a thermal via design with the thermal landing be soldered to the pcb groun d plane with 0.3mm (12mil) diameter vias in a 4x4 matrix at 0. 9mm (35.4mil) pitch. note 3.3 junction to ambient ( ja ) is dependent on the design of t he thermal vias. without thermal vias and a thermal landing, the ja is approximately 60c/w including localized pcb temperature increase. table 3.1 absolute maximum ratings voltage on vdd pin -0.3 to 4 v voltage on 5v tolerant pins (v 5vt_pin ) -0.3 to 5.5 v voltage on 5v tolerant pins (|v 5vt_pin - v dd |) (see note 3.1 )0 t o 3 . 6 v voltage on any other pin to gnd -0.3 to vdd + 0.3 v package power dissipation up to t a = 85c (see note 3.2 )1 w junction to ambient ( ja ) (see note 3.3 )4 8 c / w operating ambient temperature range -40 to 125 c storage temperature range -55 to 150 c esd rating, all pins, hbm 8000 v table 3.2 electrical specifications v dd = 3v to 3.6v, t a = -40c to 125c, all typical values at t a = 27c unless otherwise noted. characteristic symbol min typ max unit conditions dc power supply voltage v dd 3.0 3.3 3.6 v supply current i dd 0.55 1 ma average current capacitive sensing active, leds enabled i sleep 200 250 ua sleep state active, 1 sensor monitored; led11 inactive t a < 85c i dsleep 4.5 10 ua deep sleep, led 11 inactive t a < 40c time to communications t comm 15 20 ms time from power applied to communications active downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 16 smsc cap1114 datasheet time to first conversion t conv 400 500 ms time from power applied to first sensor sampled capacitive touch sensor base capacitance c base 5 15 50 pf pad untouched detectable capacitive shift c touch 0.1 0.4 2 pf pad touched sample time t touch 2.5 ms update time t touch 35 ms recalibration interval t cal 8s automatic recalib ration active, no touch active, default settings led / gpio drivers (led / gpio 1 - 8) duty cycle duty led 0 100 % programmable drive frequency f led 2k h z sinking current i sink 24 ma v ol = 0.4 sourcing current i source 24 ma v oh = v dd - 0.4 input high voltage v ih 2.0 v led / gpio configured as input input low voltage v il 0.8 v led / gpio configured as input led drivers (led 9 - led 10) duty cycle duty led 0 100 % programmable drive frequency f led 2k h z sinking current i sink 24 ma output low voltage v ol 0.4 v i sink = 24ma led11 driver duty cycle duty led 0 100 % programmable drive frequency f led 2k h z sinking current i sink 48 ma output low voltage v ol 0.4 v i sink = 48ma i/o pins - smdata, smclk, and alert pins output low voltage v ol 0.4 v i sink_io = 8ma output high voltage v oh v dd - 0.4 v alert pin active high and asserted i source_io = 8ma input high voltage v ih 2.0 v table 3.2 electrical specifications (continued) v dd = 3v to 3.6v, t a = -40c to 125c, all typical values at t a = 27c unless otherwise noted. characteristic symbol min typ max unit conditions downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 17 revision 1.1 (02-04-11) datasheet input low voltage v il 0.8 v leakage current i leak 5 ua powered or unpowered ta < 85c pull-up voltage < 3.6v reset pin input high voltage v ih 2.0 v input low voltage v il 0.8 v reset filter time t rst_filt 10 ms reset pin release to fully active operation t rst_on 400 500 ms smbus timing input capacitance c in 5p f clock frequency f smb 10 400 khz spike suppression t sp 50 ns bus free time start to stop t buf 1.3 us setup time: start t su:sta 0.6 us setup time: stop t su:stp 0.6 us data hold time t hd:dat 0.6 6 us data setup time t su:dat 0.6 72 us clock low period t low 1.3 us clock high period t high 0.6 us clock/data fall time t fall 300 ns min = 20+0.1c load ns clock/data rise time t rise 300 ns min = 20+0.1c load ns capacitive load c load 400 pf per bus line table 3.2 electrical specifications (continued) v dd = 3v to 3.6v, t a = -40c to 125c, all typical values at t a = 27c unless otherwise noted. characteristic symbol min typ max unit conditions downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 18 smsc cap1114 datasheet chapter 4 communications the cap1114 communicates via the smbus or i 2 c communications protocols. application note: upon power up, the cap1114 will not respond to any smbus communications for 10ms. after this time, full functionality is available. 4.1 system management bus protocol the cap1114 communicates with a host controller, such as an smsc sio, through the smbus. the smbus is a two-wire serial communication prot ocol between a computer host and its peripheral devices. a detailed timing diagram is shown in figure 4.1 . stretching of the smclk signal is supported; however, the cap1114 will not stretch the clock signal. 4.1.1 smbus start bit the smbus start bit is defined as a transition of th e smbus data line from a logic 1 state to a logic 0 state while the smbus clock line is in a logic 1 state. 4.1.2 smbus address and rd / wr bit the smbus address byte consists of the 7-bit client address followed by the rd / wr indicator bit. if this rd / wr bit is a logic 0, the smbus host is writing data to the client device. if this rd / wr bit is a logic 1, the smbus host is reading data from the client device. the cap1114 responds to the slave address 0101_000x b. multiple addressing options are available. for more information contact smsc. 4.1.3 smbus data bytes all smbus data bytes are sent most significant bit first and composed of 8-bits of information. 4.1.4 smbus ack and nack bits the smbus client will acknowledge all data bytes that it receives. this is done by the client device pulling the smbus data line low after the 8th bit of each byte that is transmitted. this applies to both the write byte and block write protocols. figure 4.1 smbus timing diagram smdata smclk t buf p s s - start condition p - stop condition p s t high t low t hd:sta t su:sto t hd:sta t hd:dat t su:dat t su:sta t fall t rise downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 19 revision 1.1 (02-04-11) datasheet the host will nack (not acknowledge) the last data by te to be received from the client by holding the smbus data line high after the 8th data bit has been sent. for the block read protocol, the host will ack each data byte that it rece ives except the last data byte. 4.1.5 smbus stop bit the smbus stop bit is defined as a transition of the smbus data line from a logic 0 state to a logic 1 state while the smbus clock line is in a logic 1 state. when the cap1114 detects an smbus stop bit, and it has been communicating with the smbus pr otocol, it will reset its client interface and prepare to receive further communications. 4.1.6 smbus time-out the cap1114 includes an smbus time -out feature. following a 30ms pe riod of inactivity on the smbus where the smclk pin is held low, the device will time-out and reset the smbus interface. the time-out function defaults to disabled. it can be enabled by setting the timeout bit in the configuration register (see section 6.14 ). 4.1.7 smbus and i 2 c compliance the major difference between smbus and i 2 c devices is highlighted here. for complete compliance information, refer to the smbus 2.0 specification. 1. minimum frequency for smbus communications is 10khz. 2. the client protocol will reset if t he clock is held low longer than 30ms. 3. except when operating in deep sleep, the client protocol will reset if both the clock and the data line are high for longer than 150us (idle condition). 4. i 2 c devices do not support the alert response addre ss functionality (which is optional for smbus). 4.2 smbus protocols the cap1114 is smbus 2.0 compatible and supports send byte, read byte, block read, receive byte as valid protocols as shown below. the cap1114 also supports the i 2 c block read and block write protocols. all of the below protocols use the convention in ta b l e 4 . 1 . 4.2.1 smbus write byte the write byte is used to write one byte of data to a specific register as shown in table 4.2 . table 4.1 protocol format data sent to device data sent to the host data sent data sent table 4.2 write byte protocol start client address wr ack register address ack register data ack stop 1 ->0 0101_000 0 0 xxh 0 xxh 0 0 -> 1 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 20 smsc cap1114 datasheet 4.2.2 block write the block write is used to write multiple data byte s to a group of contiguous registers as shown in table 4.3 . it is an extension of the write byte protocol. application note: when using the block write protocol, the in ternal address pointer will be automatically incremented after every data byte is received. it will wrap from ffh to 00h. 4.2.3 smbus read byte the read byte protocol is used to read one byte of data from the registers as shown in table 4.4 . 4.2.4 block read the block read is used to read multiple data by tes from a group of contig uous registers as shown in table 4.5 . it is an extension of the read byte protocol. application note: when using the block read protocol, the internal address pointer will be automatically incremented after every data byte is received. it will wrap from ffh to 00h. 4.2.5 smbus send byte the send byte protocol is used to set the internal address register pointer to the correct address location. no data is transferred during the send byte protocol as shown in ta b l e 4 . 6 . table 4.3 block write protocol start client address wr ack register address ack register data ack 1 ->0 0101_000 0 0 xxh 0 xxh 0 register data ack register data ack . . . register data ack stop xxh 0 xxh 0 . . . xxh 0 0 -> 1 table 4.4 read byte protocol start client address wr ack register address ack start client address rd ack register data nack stop 1->0 0101_000 0 0 xxh 0 1 ->0 0101_000 1 0 xxh 1 0 -> 1 table 4.5 block read protocol start client address wr ack register address ack start client address rd ack register data 1->0 0101_000 0 0 xxh 0 1 ->0 0101_000 1 0 xxh ack register data ack register data ack register data ack . . . register data nack stop 0 xxh 0 xxh 0 xxh 0 . . . xxh 1 0 -> 1 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 21 revision 1.1 (02-04-11) datasheet 4.2.6 smbus receive byte the receive byte protocol is used to read data from a register when the internal register address pointer is known to be at the right location (e.g. set via send byte). this is used for consecutive reads of the same register as shown in ta b l e 4 . 7 . table 4.6 send byte protocol start client address wr ack register address ack stop 1 -> 0 0101_000 0 0 xxh 0 0 -> 1 table 4.7 receive byte protocol start client address rd ack register data nack stop 1 -> 0 0101_000 1 0 xxh 1 0 -> 1 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 22 smsc cap1114 datasheet chapter 5 product description the cap1114 is a multiple channel capacitive touch sensor and led driver. the cap1114 contains up to 14 individual capa citive touch sensor inputs with programmable sensitivity for use in touch button and slider swit ch applications. each sensor also contains automatic recalibration. the cap1114 also contains eleven (11) open drain led drivers that offer full-on / off, variable rate breathing, and dimness controls. eight (8) of thes e leds can double as gpios and support open-drain or push-pull operation. capacitive buttons can be li nked to led outputs. additionally, leds 1-7 may be optionally linked to buttons 1-7 so that wh en a touch is detected, the led is actuated. the device communicates with a host controller using smbus. the host controller may poll the device for updated information at any time or it may configur e the device to flag an interrupt whenever a press is detected on any sensor. each sensor is polled by the device approximately every 35 ms. the host may also initiate a recalibration routine for one or more sensors or set up times and conditions so that the device automatically invokes the re-calibration routine. the cap1114 contains multiple power states includ ing several low power operating states. in addition, it contains a user driven reset pin to force the device to reset. a typical system diagram is shown in figure 5.1 . downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 23 revision 1.1 (02-04-11) datasheet 5.1 power states the cap1114 has four operating states depending on the status of the sleep, deact, and dsleep bits (see section 6.1 ). they are described below and summarized in table 5.1 . when the device transitions between power states, previously detect ed touches (for deactivated channels) are cleared and the status bits reset. 1. fully active - the device is fully active. it is monitoring all active capacitive sensor channels and driving all led channels as defined. figure 5.1 system diagram for cap1114 cap1114 led11 slider led10 cs14 cs13 cs12 cs11 cs10 cs9 cs8 led9 smdata smclk embedded controller vdd led8 alert dual color led 3.3v cs1 led1 touch button 3.3v 3.3v 3.3v cs2 led2 touch button 3.3v cs3 led3 touch button 3.3v cs5 led5 touch button 3.3v cs4 led4 touch button 3.3v cs6 led6 touch button 3.3v cs7 led7 touch button 3.3v reset 3.3v 3.3v downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 24 smsc cap1114 datasheet 2. sleep - the device is in the sleep state. it is monitoring a limited number of capacitive sensor channels (default 2). interrupts will still be generat ed based on the active channels. the device will still respond to smbus commands normally and can be returned to the fully active state by clearing the sleep bit. the led11 channel is controlled via the pwr_led control (see section 6.1 ). all other leds will not be affected. 3. deep sleep - the device is in deep sleep stat e. it is not monitoring any capacitive sensor channels or the smbus. the led11 channel is controlled via the pwr_led control (see section 6.1 ). all other leds will be driven to their programmed non-actuated state and no pwm operations will be done. when the device enters the deep sleep state, it will release control to the alert pin and will change the direction of the alert pin (i.e. the devi ce will monitor the alert pin instead of driving it). the device has two methods to exit the deep sleep state. they are: a. the alert pin is driven to its active state. b. any smbus communications are directed at the device. when the device leaves the deep sl eep state, it automatical ly returns to its previously defined state and clears the dsleep bit. note: when the device enters the deep sleep state, t he slider position / volumetric data register (06h) is cleared. 4. inactive - the device is inactive. it is not monitoring any capacitive sensor channels. the device will still respond to smbus commands normally and can be returned to fully active state by clearing the deact bit. all leds will have pwm controls suspended so they should be disabled prior to entering this state. if these leds are not disabl ed, the system will show excess current draw from these leds. the priority of power control signals is: 1. dsleep - when set, will override deact, disable all leds except led11 then disable smbus communications. 2. deact - when set, will override the sleep contro ls. it will disable sens or measurement and all leds. 3. sleep - when set, will enable sleep state. table 5.1 power states power state deact sleep dsleep fully active 0 0 0 deep sleep waking to fully active 0 0 1 s l e e p 010 deep sleep waking to sleep 0 1 1 i n a c t i v e 100 deep sleep waking to inactive 1 0 1 i n a c t i v e 110 deep sleep waking to inactive 1 1 1 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 25 revision 1.1 (02-04-11) datasheet 5.2 reset pin the reset pin is an active high re set that is driven from an exte rnal source. the pin contains an internal delay timer (t rst_filt ) that will block errant glitches on the reset pin. the reset pin must be driven high or low longer than this time be fore the cap1114 will react to the pin state. while the reset pin is held high, a ll the internal blocks will be held in reset including the smbus. all configuration settings will be reset to default states and all readings will be cleared. furthermore, the device will be held in deep sleep that can only be removed by driving the reset pin low. once the reset pin is pulled low, the cap11 14 will begin operation as if a power-on-reset had occurred. when this happens, the reset bit will be set and an interrupt will be generated. 5.3 led drivers the cap1114 contains eleven (11) led drivers. ea ch led driver is controlled independently of the others and may be linked to the corresponding capaci tive touch sensor input. all led drivers will operate in one of the following modes. led drivers 1 - 8 can be configured to operate with either push- pull or open-drain drive and may also be configured to operate as gpios. led drivers 9 - 11 will only operate as open-drain drivers. 1. direct - the led is configured to be on or off w hen the corresponding input stimulus is on or off (or inverted). the brightness of the led can be programmed from full off to full on (default). additionally, the led contains controls to individua lly configure ramping on, off, and turn-off delay. 2. pulse 1 - the led is configured to pulse (transition on-o ff-on) a programmable number of times with programmable rate and min / max brightness. further, the led can be configured to be actuated upon a touch detection or release detection (or based on us er written control registers). 3. pulse 2 - the led is configured to pulse while actuated and then pulse a programmable number of times with programmable rate and min / max brightness when the sensor is released. 4. breathe - the led is configured to transition co ntinuously on-off-on (i.e. to breathe) with a programmable rate and min / max brightness. in addition to these four behaviors, all led driver s support user initiated ramps and have an option to assert the alert pin when the ramp has reached its maximum or minimum settings. led11 operates differently than the other led outputs in three ways. first, it is configured to drive up to two external led channels simultaneously. second, it is not disabled during the sleep or deep sleep states of operation (see section 6.1 ). the third and final difference is it allows for different behaviors when the device is in fully active state versus when the device is in sleep or deep sleep state. 5.3.1 linking leds to capacitive touch sensors leds 1 - 7 can be optionally linked to capacitive touch sensors 1-7 so that when the sensor detects a button press, the corresponding led will be ac tuated at one of the programmed responses. leds 9 and 10 may be optionally linked to the groupe d sensors to indicate a slide / tap / press and hold in the up or down directions. 5.4 capacitive touch sensing the cap1114 contains 14 independent capacitive touch sensor inputs. each sensor has dynamic range to detect a change of capacitance due to a touch. additionally, each sensor can be configured to be automatically and r outinely re-calibrated. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 26 smsc cap1114 datasheet 5.4.1 multiple button presses if multiple sensor buttons (with a programmable threshold - see section 6.23 ) are simultaneously detected, only the first n buttons that are detec ted are flagged. all other buttons are ignored. furthermore, the device remembers which buttons were legitimate so new touches are not detected so long as n buttons are pressed. likewise, if too many (based on the programmed threshold - see section 6.23 ) grouped sensor presses are detected, the device will block all pre ss detections on the grouped buttons and cancel any current presses as if the sensor had been released. 5.4.2 lid closure to detect lid closure or other similar events, lid closure sensor thresholds can be set. a lid closure event can be flagged based on either a minimum number of sensors or on specific sensors simultaneously exceeding the lid closure threshold. an interrupt can also be generated. during a lid closure event, all touches are blocked. 5.4.3 grouped sensors (cs8 - cs14) capacitive touch sensors 8 through 14 inclusive may be grouped as a single entity (which is the default state). each sensor is sampled independently; however, for purposes of activation, recalibration, and repeat rates, all of them are treated as one group. the group also has different controls and allows for different behavior su ch as sliding, tapping, or press and hold. the grouped sensors may be ungrouped as described in section 5.6 . 5.4.4 sensing cycle each capacitive touch sensor has controls to be activated and included in the sensing cycle. when the device is active, it automatic ally initiates a sensing cycle and repeats the cycle every time it finishes. the cycle polls through each active s ensor starting with cs1 and extending through cs14. as each capacitive touch sensor is polled, it s measurement is compar ed against a baseline not touched measurement. if the delta measurement is large enough, a touch is detected and an interrupt generated. 5.4.5 proximity detection sensor cs1 can be configured to detect changes in capacitance due to proximity of a touch. this circuitry detects the change of capacitance that is generated as an object approaches, but does not physically touch, the cs1 sensor. when proximity de tection is enabled, the signal is boosted by 8x to detect very small capacitance changes. separate controls determine averaging and sensitivity for proximity (see section 6.35, "proximity control register" ). 5.4.6 recalibrating sensors each sensor is regularly recalibrated at an adjustab le rate. by default, the recalibration routine stores the average 256 previous measurements and periodi cally updates the base not touched setting for the capacitive touch sensor input. this routine is disabled automatically if a touch is detected so the touch does not factor into t he base not touched setting. 5.4.7 low frequency noise detection each sensor has a noise detector that will sense if low frequency noise is injected onto the input with sufficient power to corrupt the readings. this noise detector has a fixed threshold above and below the rail that will trigger when noise is present. if low frequency noise is detected on a cs line, that sample is removed and not compared against the threshold. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 27 revision 1.1 (02-04-11) datasheet 5.4.8 rf noise detection each sensor also contains an integrated rf noise detector. this block will detect injected rf noise on the cs pin. the detector threshold is dependent upo n the noise frequency. if rf noise is detected on a cs line, that sample is removed and not compared against the threshold. 5.5 grouped sensor behavior the cap1114 grouped sensors (cs8 - cs14) can be co nfigured to function as a single entity that operates differently than the individual button sensors (for ungrouped behavior see section 5.6 ). when configured as a group these sensors function as a slider and offer three different interface functions associated with it. these functions are tap, press and hold, or a slide. for purposes of a tap or press and hold event, the down side of the grouped sensors are defined as cs8, cs9 and cs10. the up side of the grouped sensors are defined as cs12, cs13, and cs14. cs11 is neither up nor down and a tap or press and hold event on cs11 will not cause either up or down status bits to be set. for purposes of a slide, the down direction is decreasing in cs channel number. conversely, the up direction is increasing in cs number. application note: the grouped sensors will cause ei ther the up or down status bits to be set but not both at the same time. in the case that a sensor on both the up side of the slider and the down side of the slider are touched simult aneously, neither the up nor down status bits will be set. 5.5.1 tap if a touch on any grouped sensor is detect ed and held for less than or equal to the m_press bit settings (default 245ms), a group press is detected, the tap bit is set, and an interrupt is generated. furthermore, the relative position on the slider is determined and the appropriate up or down status bits are set and the appropriate led is actuated. no further action is taken. if a slide is subse quently detected, the tap st atus bit is cleared. 5.5.2 press and hold if a touch on any grouped sensor is held for long er than the m_press bit settings (default 245ms), a group touch is detected and an interrupt is generated. furthermore, the relative position on the slider is determined and the approp riate up or down status bits are set, the ph bit is set, and the appropriate led is actuated. so long as the grouped sensor is held, it will flag an interrupt at the programmed repeat rate (as determined by the rpt_rate_ph bit settings) indef initely. once the touch has been removed, the group is returned to its no rmal operating condition. the m_press setting is important to distinguish between tap, press & hold and sliding. if m_press is set too low, a press & hold may be detected duri ng a slow slide. this will cause user confusion as the slide direction and led may change. longer m_ press settings will ensure that the 3 group behaviors are reliably distinct and will add more del ay prior to the press & hold repeat interrupt generation. 5.5.3 slider the grouped sensors have the capability to detect a slide in either the up or down direction as referenced by the sensor numbers that are used. for example, an up direction slide would be detected if cs8 detected a touch, fo llowed by cs9, then by cs10, etc. likewise, a down direction slide would be detected if cs 10 detected a touch, followed by cs9, then by cs8, etc. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 28 smsc cap1114 datasheet slides in either direction are configured to flag an interrupt and to cause an led to be actuated (separate for each direction). the slide is dete cted independently of a press and hold or a tap condition and only one condition may be present at any one time. so long as a slide is maintained in either direct ion, it will flag an interrupt at the programmed repeat rate (as determined by the rpt_rate_sl bit settings ). if the slide is removed or changes direction, it will reset and return to normal operation. 5.5.4 relative position the cap1114 has the option to indicate the relative position of a touch on the grouped sensors. this value is stored either as a scaled number from 2 to 98 indicating where a tap, press and hold, or the end of a slide was detected or as a 8-bit number that represents volumetric data. when configured to store volumetric data, the user may write a base sett ing at any time that is modified based on grouped sensor behavior (see section 6.4 ). 5.5.5 slider velocity the repeat rate can be dynamically increased based on the speed of a slide. this permits slow sliding motions to have precise, step-by-s tep volume control and faster moti ons to generate increasingly fast volume changes. two techniques are employed to increase the numbe r of interrupts generated based on speed. first, the slide speed is measured and the repeat rate is increased to provide more interrupts for the same distance traveled relative to a slower slide. se cond, additional interrupts are generated immediately after the slide ends to further increase the change in volume. the number of additional interrupts is based on slide speed; both of these dynamic slider behaviors are controlled by the slider velocity register. 5.6 ungrouped sensor behavior the cap1114 grouped sensors have the option to be used as individual buttons. when the group is broken (via the vol_up_down bit - see section 6.33 ), buttons cs8 and cs14 will adopt one type of behavior while buttons cs9 - cs13 will adopt anothe r. in all cases, a slid e will not be detected. 5.6.1 cs9 - cs13 ungrouped behavior these buttons will cause the corresponding status bit in the bu tton status 2 register (see section 6.2 ) to be asserted when a touch is detected. this touch detection uses the button queue and button repeat rate settings. they will use the slider maximum duration and multiple touch settings. 5.6.2 cs8 and cs14 ungrouped behavior cs8 and cs14 will generate interrupts based on the duration of the touch detec ted, similar to a tap and press and hold events. furthermore, these sensors will generate interrupts at the grouped sensors repeat rate based on whether a tap or press and hold event has been detected. if a touch is detected on cs8, the down status bit will be set in addition to either tap or ph. if a touch is detected on cs14, th e up status bit will be set in addition to either tap or ph. based on the multiple button touch settings (see section 6.23 ), both cs8 and cs14 may detect a touch simultaneously and both up and down status bits may be set. 5.7 alert pin the alert pin is an active high output that is driv en high when an interrupt event is detected. it is also used to wake the device from deep sleep state. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 29 revision 1.1 (02-04-11) datasheet whenever an interrupt is generated, the int bit (see section 6.1 ) is set. the alert pin is cleared when int bit is cleared by the user. additionally, w hen the int bit is cleared by the user, status bits are cleared only if no press is detected. 5.7.1 button interrupt behavior for non-grouped buttons, an interrupt is generated when a touch is detected. if the repeat rate is enabled (see section 6.14 ), then, so long as the touch is held, another interrupt will be generated based on the programmed repeat rate (see figure 5.2 ) and upon release. 5.7.2 grouped sensor interrupt behavior for grouped sensors, an interrupt is generated upon init ial detection of a tap, slide, or press and hold event. then, subsequent interru pts are generated as follows: 1. for a slide event, an interrupt is generated bas ed on the programmed repeat rate as well as the velocity of the slide operation. see figure 5.6 and figure 5.7 . additional interrupts are generated after the slide has finished. these extra interr upts are generated every round robin cycle (~35ms) and the number is determined by the speed of the slide. 2. for a tap event there are no further interrupts. see figure 5.4 . 3. for a press and hold event, interrupts are gener ated based on the programmed repeat rate. if the repeat rate is disabled, no further interrupts are generated. see figure 5.5 . 5.7.3 wake from deep sleep when the alert pin is driven high from an external source, it is also used to wake the device from the deep sleep power state. when the device enters the deep sleep power state, the alert pin output is put into a high-z mode. it requires a pull- down resistor to pull it to the inactive state. furthermore, the cap1114 will wait 5ms before it samples the alert pin for wake activity. figure 5.2 button interrupt behavior - repeat rate en abled (default) touch detected alert pin / int bit button status smbus write to int bit polling cycle (35ms) button repeat rate (175ms) optional interrupt on release interrupt on touch button repeat rate (175ms) button repeat rate (175ms) downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 30 smsc cap1114 datasheet . figure 5.3 button interrupt behavior - no repeat rate enabled figure 5.4 tap interrupt behavior touch detected alert pin / int bit button status smbus write to int bit polling cycle (35ms) interrupt on touch optional interrupt on release touch detected alert pin / int bit tap & up / down status smbus write to int bit polling cycle (35ms) m_press setting (280ms) released before m_press downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 31 revision 1.1 (02-04-11) datasheet figure 5.5 press and hold interrupt behavior touch detected alert pin / int bit ph status smbus write to int bit polling cycle (35ms) m_press setting (280ms) up / down status repeat rate (rpt_rate_ph - 175ms) held longer than m_press setting repeat rate (rpt_rate_ph - 175ms) downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 32 smsc cap1114 datasheet figure 5.6 slide interrupt be havior - no acceleration touch detected - cs11 alert pin / int bit smbus write to int bit polling cycle (35ms) up status touch detected - cs12 touch detected C cs13 touch detected C cs14 down status touch detected C cs10 touch detected C cs9 touch detected C cs8 repeat rate (175ms) down up repeat rate (175ms) downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 33 revision 1.1 (02-04-11) datasheet figure 5.7 slide interrupt behavior - acceleration example touch detected - cs11 alert pin / int bit smbus write to int bit polling cycle (35ms) touch detected - cs12 touch detected C cs13 touch detected C cs14 touch detected C cs10 touch detected C cs9 touch detected C cs8 maxi mum sl i de (768ms) repeat rate (base = 140ms) minor acceleration - repeat rate reduced 70ms major acceleration - repeat rate reduced 35ms normal slide C no change in repeat rate 140ms 70ms slide ended (525ms) = 0.68 x max C generate 2 extra interrupts at 35ms apart 35ms downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 34 smsc cap1114 datasheet chapter 6 register description the registers shown in ta b l e 6 . 1 are accessible through the smbus. an entry of - indicates that the bit is not used and will always read 0. table 6.1 register set in hexadecimal order register address r/w register name function default value page 00h r/w main status control controls general power states 00h page 41 03h r button status 1 returns the state of the cap sensor group and buttons 1 - 6 and slider controls 00h page 42 04h r button status 2 returns t he state of buttons 7 - 14 00h page 42 05h r build revision stores the functional revision of the device build 10h page 43 06h r-c / r/w slider position / volumetric data returns the relative position of a press on the slider or volumetric data 00h page 43 08h r vendor id stores a fixed value that identifies smsc 5dh page 45 09h r/w volumetric step controls the step used for volumetric data increases for a slide 01h page 45 0ah r noise status 1 stores the noise flags for sensors 1 - 7 00h page 45 0bh r noise status 2 stores the noise flags for sensors 8 - 14 00h page 45 0ch r lid closure status 1 stores lid closure status bits for sensors 1 - 7 00h page 46 0dh r lid closure status 2 stores lid closure status bits for sensors 8 - 14 00h page 46 0eh r-c gpio status stores the status of led1 / gpio1 through led8 / gpio8 pins 00h page 46 0fh r-c group status returns the state of the grouped sensors 00h page 47 10h r sensor 1 delta count stores the delta count for cs1 00h page 47 11h r sensor 2 delta count stores the delta count for cs2 00h page 47 12h r sensor 3 delta count stores the delta count for cs3 00h page 47 13h r sensor 4 delta count stores the delta count for cs4 00h page 47 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 35 revision 1.1 (02-04-11) datasheet 14h r sensor 5 delta count stores the delta count for cs5 00h page 47 15h r sensor 6 delta count stores the delta count for cs6 00h page 47 16h r sensor 7 delta count stores the delta count for cs7 00h page 47 17h r sensor 8 delta count stores the delta count for cs8 00h page 47 18h r sensor 9 delta count stores the delta count for cs9 00h page 47 19h r sensor 10 delta count stores the delta count for cs10 00h page 47 1ah r sensor 11 delta count stores the delta count for cs11 00h page 47 1bh r sensor 12 delta count stores the delta count for cs12 00h page 47 1ch r sensor 13 delta count stores the delta count for cs13 00h page 47 1dh r sensor 14 delta count stores the delta count for cs14 00h page 47 1eh r/w queue control controls how many samples must exceed touch threshold for button press detections 03h page 48 1fh r/w data sensitivity controls the sensitivity of the threshold and delta counts and data scaling of the base counts 2fh page 49 20h r/w configuration controls some recalibration and led controls 29h page 51 21h r/w sensor enable controls whether the capacitive touch sensor group and button inputs 1 - 7 are sampled ffh page 52 22h r/w button configuration controls reset delay and auto- repeat delay for buttons a4h page 53 23h r/w group configuration 1 controls the detection dwell time before a press is detected within the group 47h page 54 24h r/w group configuration 2 controls reset delay and auto- repeat delay for grouped sensors d4h page 55 25h r/w calibration enable controls automatic calibration for grouped sensors and sensors 1 - 7 ffh page 56 26h r/w calibration activate activates manual re-calibration for grouped sensors and sensors 1 - 7 00h page 56 table 6.1 register set in hexadecimal order (continued) register address r/w register name function default value page downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 36 smsc cap1114 datasheet 27h r/w interrupt enable 1 enables interrupts associated with the grouped sensors and sensors 1 - 7 ffh page 58 28h r/w interrupt enable 2 enables interrupts associated with gpios 1 - 8 00h page 58 29h r/w sleep channel control determines the number and which channels are measured during sleep 00h page 59 2ah r/w multiple press configuration determines the number of simultaneous presses to flag a multiple press condition 82h page 60 2bh r/w lid closure configuration controls lid closure detection and operation 00h page 61 2ch r/w lid closure queue control controls how many samples must exceed the lid closure threshold for button and slider operation 02h page 61 2dh r/w lid closure pattern 1 stores pattern bits for lid closure detection for channels 1 - 7 7fh page 62 2eh r/w lid closure pattern 2 stores pattern bits for lid closure detection for channels 8 - 14 7fh page 62 2fh r/w recalibration configuration determines re-calibration timing and sampling window 93h page 63 30h r/w sensor 1 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 1 40h page 64 31h r/w sensor 2 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 2 40h page 64 32h r/w sensor 3 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 3 40h page 64 33h r/w sensor 4 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 4 40h page 64 34h r/w sensor 5 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 5 40h page 64 35h r/w sensor 6 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 6 40h page 64 36h r/w sensor 7 threshold stores the delta count threshold to determine a touch for capacitive touch sensor 7 40h page 64 table 6.1 register set in hexadecimal order (continued) register address r/w register name function default value page downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 37 revision 1.1 (02-04-11) datasheet 37h r/w group threshold stores the delta count threshold to determine a touch on any of the grouped sensors 40h page 64 38h r/w button noise threshold 1 stores controls for selecting the noise threshold for buttons 1 - 4 aah page 65 39h r/w button noise threshold 2 stores controls for selecting the noise threshold for buttons 5 - 7 and the grouped sensors aah page 65 3ah r/w lid closure threshold 1 stores controls for selecting the lid closure threshold for buttons 1 - 4 aah page 66 3bh r/w lid closure threshold 2 stores controls for selecting the lid closure threshold for buttons 5 - 8 aah page 66 3ch r/w lid closure threshold 3 stores controls for selecting the lid closure threshold for buttons 9 - 12 aah page 66 3dh r/w lid closure threshold 4 stores controls for selecting the lid closure threshold for buttons 13 - 14 0ah page 66 3eh r/w slider velocity configuration determines speed parameters for the slider c5h page 67 3fh r/w digital recalibration forces digital recalibration for all sensors 00h page 69 40h r/w configuration 2 stores additional controls for general operation 00h page 70 41h r/w grouped channel sensor enable stores controls to enable some or all sensors in the group 7fh page 71 42h r/w proximity control controls the sensitivity settings for cs1 02h page 72 46h r/w grouped sensor calibration activate stores controls to force a calibration on the individual sensors in the group 00h page 56 4eh r/w sampling channel select controls which channels are affected by the sampling configuration register settings 00h page 73 4fh r/w sampling configuration changes the sampling time for one or more input channels 00h page 73 50h r sensor 1 base count stores the reference count value for sensor 1 00h page 74 51h r sensor 2 base count stores the reference count value for sensor 2 00h page 74 52h r sensor 3 base count stores the reference count value for sensor 3 00h page 74 53h r sensor 4 base count stores the reference count value for sensor 4 00h page 74 table 6.1 register set in hexadecimal order (continued) register address r/w register name function default value page downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 38 smsc cap1114 datasheet 54h r sensor 5 base count stores the reference count value for sensor 5 00h page 74 55h r sensor 6 base count stores the reference count value for sensor 6 00h page 74 56h r sensor 7 base count stores the reference count value for sensor 7 00h page 74 57h r sensor 8 base count stores the reference count value for sensor 8 00h page 74 58h r sensor 9 base count stores the reference count value for sensor 9 00h page 74 59h r sensor 10 base count stores the reference count value for sensor 10 00h page 74 5ah r sensor 11 base count stores the reference count value for sensor 11 00h page 74 5bh r sensor 12 base count stores the reference count value for sensor 12 00h page 74 5ch r sensor 13 base count stores the reference count value for sensor 13 00h page 74 5dh r sensor 14 base count stores the reference count value for sensor 14 00h page 74 60h r led status 1 stores status bits for leds 1 - 8 00h page 75 61h r led status 2 stores status bits for leds 9 - 11 00h page 75 70h r/w led / gpio direction controls the direction for led1/ gpio1 through led8 / gpio8 00h page 76 71h r/w led / gpio output type controls the output type for led1 / gpio1 through led8 / gpio8 00h page 77 72h r gpio input stores the pin state of led1 / gpio1 through led8 / gpio8 00h page 77 73h r/w led output control 1 controls the output state of the led drivers 1 - 8 00h page 78 74h r/w led output control 2 controls the output state of the led drivers 9 - 11 00h page 78 75h r/w led polarity 1 controls the out put polarity of leds 1 - 8 00h page 79 76h r/w led polarity 2 controls the out put polarity of leds 9 - 11 00h page 79 77h r/w linked led transition control 1 controls transition effects of leds 1 - 7 when linked 00h page 81 78h r/w linked led transition control 2 controls transition effects of leds 9 - 10 when linked 00h page 81 table 6.1 register set in hexadecimal order (continued) register address r/w register name function default value page downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 39 revision 1.1 (02-04-11) datasheet 79h r/w led mirror control 1 controls the duty cycle mirroring of leds 1 - 8 00h page 82 7ah r/w led mirror control 2 controls the duty cycle mirroring of leds 9 - 11 00h page 82 80h r/w sensor led linking controls linking of cs1 - cs7 to led channels 00h page 83 81h r/w led behavior 1 controls the behavior and response of leds 1 - 4 00h page 84 82h r/w led behavior 2 controls the behavior and response of leds 5 - 8 00h page 84 83h r/w led behavior 3 controls the behavior and response of leds 9 - 11 00h page 84 84h r/w led pulse 1 period controls the period of each breathe during a pulse 20h page 86 85h r/w led pulse 2 period controls the period of breath and pulse release operation 14h page 88 86h r/w led breathe period controls the period of an led breathe operation 5dh page 89 88h r/w led configuration controls the number of pulses for the pulse 1 and pulse 2 led behaviors 24h page 89 90h r/w led pulse 1 duty cycle determines the min and max duty cycle for the pulse operation f0h page 90 91h r/w led pulse 2 duty cycle determines the min and max duty cycle for the breathe and pulse release operation f0h page 90 92h r/w led breathe duty cycle determines the min and max duty cycle for the breathe operation f0h page 90 93h r/w led direct duty cycle determines the min and max duty cycle for direct mode led operation f0h page 90 94h r/w led direct ramp rates determines the rising and falling edge ramp rates of the led 00h page 91 95h r/w led off delay determines the off delay for all led behaviors 00h page 92 b1h r sensor 1 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 1 00h page 94 b2h r sensor 2 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 2 00h page 94 b3h r sensor 3 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 3 00h page 94 table 6.1 register set in hexadecimal order (continued) register address r/w register name function default value page downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 40 smsc cap1114 datasheet during power-on-reset (por), the default values are stored in the registers. a por is initiated when power is first applied to the part and the vo ltage on the vdd supply surpasses the por level as specified in the electrical charac teristics. any reads to undefined registers will return 00h. writes to undefined registers will not have an effect. when a bit is set, this means that the user writes a logic 1 to it. when a bit is cleared, this means that the user writes a logic 0 to it. b4h r sensor 4 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 4 00h page 94 b5h r sensor 5 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 5 00h page 94 b6h r sensor 6 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 6 00h page 94 b7h r sensor 7 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 7 00h page 94 b8h r sensor 8 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 8 00h page 94 b9h r sensor 9 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 9 00h page 94 bah r sensor 10 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 10 00h page 94 bbh r sensor 11 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 11 00h page 94 bch r sensor 12 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 12 00h page 94 bdh r sensor 13 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 13 00h page 94 beh r sensor 14 calibration stores the high byte of the 10-bit value used to drive the analog portion of sensor 14 00h page 94 fdh r product id stores a fixed value that identifies each product 3ah page 95 feh r manufacturer id stores a fixed value that identifies smsc 5dh page 45 ffh r revision stores a fixed value that represents the revision number 80h page 95 table 6.1 register set in hexadecimal order (continued) register address r/w register name function default value page downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 41 revision 1.1 (02-04-11) datasheet 6.1 main status control register the main status and control register contro ls the primary power state of the device. bit 6 - deact - deactivates all sensor scanning and led activity. ? 0 - (default) - sensor scanning is active and leds are functional. ? 1 - all sensor scanning is disabled and all linked leds are disabled (see section ). the only way to restart scanning is to clear this bit. the stat us registers are automatically cleared and the int bit is cleared. bit 5 - sleep - enables sleep state by deactivatin g the led activity and scanning those sensors enabled via the sleep control register. ? 0 (default) - sensor scanning is active and leds are functional. ? 1 - all leds are disabled (except led11) and the capacitive touch sensor scanning is limited to the sensors set in the sleep channel control register (see section 6.22 ). the status registers will not be cleared. bit 4 - dsleep - enables the deep sleep state by deactivating all functions. ? 0 (default) - sensor scanning is active and leds are functional. ? 1 - all sensor scanning is disabled. except for led11, all leds are driven to their programmed non-actuated state and no pwm operations will be done. the device will return to its previous power state when the alert pin is driven to its active level (see section 5.7 ). the status registers are automatically cleared and the int bit is cl eared. smbus communicati ons targeted at the cap1114 will bring the device out of deep sleep and automatically clear this bit. bit 1 - pwr_led - controls the output of le d11 based on the state of bits 5 and 4. ? 0 (default) - the led11 output is in the inactive or off state. ? 1 - the led11 output is active in one of the following conditions: a. both bits 4 and 5 are set to a logic 0. the led will behave as defined by the led11_ctl bits (see section ). b. either bit 4 or bit 5 is set to a logic 1. the led will behave as defined by the led11_alt bits (see section ). bit 0 - int - indicates that there is an interrupt. this bit is only set if the alert pin has been asserted. if a channel detects a press and its associated interru pt enable bit is set to a logic 0, no action is taken. this bit is cleared by writing a logic 0 to it. when this bit is cleared, the alert pin will be deasserted and all status registers will be cleared if the condition has been removed. ? 0 - no interrupt pending. ? 1 - a button press has been detected on one or more channels and the interrupt has been asserted. table 6.2 main status control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 00h r/w main status control - deact sleep dsleep - - pwr_ led int 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 42 smsc cap1114 datasheet 6.2 button status registers the button status registers store status bits that indicate a butto n press has been detected. a value of 0 in any bit indicates that no button press has been detected. a value of 1 in any bit indicates that a button press has been detected. all status bits are cleared when the device enters the deep sleep or inactive states (dsleep = 1 or deact = 1 - see section 6.1 ). all status bits are cleared when the int bit is cleared and if a touch on the respective capacitive touch sensor is no longer present. if a touch is still detected, the bits will not be cleared (but this will not cause the interrupt to be asserted - see section 6.14 ) application note: when the button status 1 regist er is read, the group status register will be automatically cleared. therefore, the group status regist er should be read prior to reading the button status registers 6.2.1 button status 1 bit 7 - up - indicates that a slide was detected on increasing sensors (i.e. sensor 8 -> sensor 9 -> sensor 10). this bit is also set if a press is detec ted on the up portion of the slider. if the group auto-repeat is enabled, the alert pin will be period ically asserted while a slide or press and hold event is still detec ted. this bit is sticky and wil l remain set until cleared. once cleared, it will be re-set when another interrupt is generated in the up direction. this bit is automatically cleared if the down bit is set. bit 6 - down - indicates that a slide was detected on decreasing sensors (i.e. sensor 14 -> sensor 13-> sensor 12). this bit is also set if a press is detected on the down portion of the slider. if the group auto-repeat is enabled, the alert pin will be periodically asserted while a slide or press and hold event is still detected. this bit is sticky and will remain se t until cleared. once cleared, it will be re-set when another interrupt is gen erated in the down direction. th is bit is automatically cleared if the up bit is set. bit 5 - cs6 - indicates that a press was detected on sensor 6. this sensor can be linked to led6. ? 0 - a touch was not detected on the corresponding button. ? 1 - a touch was detected on the corresponding button. bit 4 - cs5 - indicates that a press was detected on sensor 5. this sensor can be linked to led5. bit 3 - cs4 - indicates that a press was detected on sensor 4. this sensor can be linked to led4. bit 2 - cs3 - indicates that a press was detected on sensor 3. this sensor can be linked to led3 bit 1 - cs2 - indicates that a press was detected on sensor 2. this sensor can be linked to led2. bit 0 - cs1 - indicates that a press was detected on sensor 1. this sensor can be linked to led1. table 6.3 button status registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 03h r button status 1 up down cs6 cs5 cs4 cs3 cs2 cs1 00h 04h r button status 2 cs14 cs13 cs12 cs11 cs10 cs9 cs8 cs7 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 43 revision 1.1 (02-04-11) datasheet 6.2.2 button status 2 bit 7 - cs14 - indicates that press was detected on s ensor 14. this sensor is part of the group which can be linked to led9 and led10. bit 6 - cs13 - indicates that press was detected on s ensor 13. this sensor is part of the group which can be linked to led9 and led10. bit 5 - cs12 - indicates that press was detected on s ensor 12. this sensor is part of the group which can be linked to led9 and led10. bit 4 - cs11 - indicates that press was detected on sensor 11. this sensor is part of the group which can be linked to led9 and led10. bit 3 - cs10 - indicates that press was detected on s ensor 10. this sensor is part of the group which can be linked to led9 and led10. bit 2 - cs9 - indicates that press was detected on se nsor 9. this sensor is part of the group which can be linked to led9 and led10. bit 1 - cs8 - indicates that press was detected on se nsor 8. this sensor is part of the group which can be linked to led9 and led10. bit 0 - cs7 - indicates that a press was detected on sensor 7. this sensor can be linked to led7. 6.3 build revision register the build revision register indicates har dware defined settin gs that are used. 6.4 slider position / volumetric data register the slider position / volumetric data register indica tes the absolute position of a tap, slide, or press and hold event detected on the grouped sensors (slid er). alternately, the re gister stores volumetric data that increases or decreased based on detected operations on the gr ouped sensors (slider). application note: when the device enters the deep sleep state, the slider position / volumetric data register (06h) is cleared. bits 6-0 - pos[6:0] - indicate absolute position or volumetric data as determined by the pos_vol bit (see section 6.14 ). table 6.4 build revision register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 05h r build revision - - - build4 build3 build2 build1 build0 10h table 6.5 slider position / volumetric data register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 06h r-c / r/w slider position / volumetric data - pos[6:0] 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 44 smsc cap1114 datasheet 6.4.1 absolute position the absolute position of a single t ouch is available from this register. by interpolating information from up to 3 adjacent buttons, 16 different positions are calculated by the cap1114 from the center of one button to the center of each adjacent button. the bits will encode a range from 2 to 98 indicative of where the touch occurred. table 6.6 shows an example of the settin gs assuming a single button is pressed. if a slide is detected on the grouped sensors, the pos[ 6:0] bits will indicate the most recently touched sensor (i.e. where the slide ended) however will not indicate where the slide originated. application note: the register will be cleared to a value of 00h when it is read. it will be set to a valid position when the next alert is generated. it will be upda ted at the respective repeat rate for a slide or press and hold event regardless of whether it has been read or not. therefore, it will only show the position of the last touch de tected at the time of the interrupt. 6.4.2 volumetric data if they are setup to present volumetric data (see section 6.14 ), the bits will encode a range from 0 to 100. this value is updated based on the grouped sensor activity: ? a slide in the up direction will increase the volumetric data by the volumetric step setting (see section 6.6 ) whenever an interrupt is generated (including extra interrupts generated after the slide is complete). ? a slide in the down direction will decrease the volumetric data by the volumetric step setting (see section 6.6 ) whenever an interrupt is generated (including extra interrupts generated after the slide is complete) ? a tap (see section 5.5.1 ) on the up side will increase the volumetric data by a value of 1. ? a tap on the down side will decrease the volumetric data by a value of 1. ? a press and hold (see section 5.5.2 ) on the up side will increase the volumetric data by a value of 1 at every repeat rate interval. ? a press and hold (see section 5.5.2 ) on the down side will decrease the volumetric data by a value of 1 at every repeat rate interval. the bits are read / write. table 6.6 example slider absolute position decode touch position pos[6:0] settings cs8 02h (2d) cs9 12h (18d) cs10 22h (34d) cs11 32h (50d) cs12 42h (68d) cs13 52h (82d) cs14 62h (98d) downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 45 revision 1.1 (02-04-11) datasheet 6.5 vendor id register the vendor id register stores an 8-bit value that represents smsc. 6.6 volumetric step register the volumetric step register controls the size of a step to the volumetric data when a slide is detected in the up and down directions. bits 3 - 0 - vol_step[3:0] - determines the volume tric data step when a slide is detected. each lsb corresponds to a value of 1. 6.7 noise status registers the noise status registers store status bits that are generated from the anal og block if the detected noise is above the operating region of the analog dete ctor. these bits indicate that the most recently received data from the sensor is invalid and shou ld not be used for touch detection. furthermore, so long as the bit is set for a particular channel, no decisions are made with the data. the queues are not updated, a touch is not detected , and a release is not detected. these bits will also be set if rf noise is detected on any individual sensor. with the exception of cs1, these conditions are ord together when setting the bits. for cs1, the s1_rf_noise bit will be set when rf noise is detected, and the s1_noise bi t will be set if the detected noise is above the operating region of the detector. these bits are not sticky and will be cleared automatically if the analog block does no t report a noise error. table 6.7 vendor id register a d d rr / w r e g i s t e r b 7b 6b 5b 4b 3b 2b 1b 0d e f a u l t 08h r v e n d o r i d 01011101 5 d h feh table 6.8 volumetric step register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 0 9 hr / wv o l u m e t r i c s t e p---- v o l _ s t e p [ 3 : 0 ] 0 1 h table 6.9 noise status registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 0ah r noise status 1 s1_rf_ noise s7_ noise s6_ noise s5_ noise s4_ noise s3_ noise s2_ noise s1_ noise 00h 0bh r noise status 2 - s14_ noise s13_ noise s12_ noise s11_ noise s10_ noise s9_ noise s8_ noise 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 46 smsc cap1114 datasheet application note: for the cap1114-2, if the lid closure detect ion circuitry is enabled, these bits count as sensors above the lid closure count threshold even if the corresponding data count is not. if the corresponding data byte exceeds the lid cl osure threshold, it is not counted twice. application note: regardless of the state of t he noise status bits, if low frequency noise is detected on a sensor, that sample will be discarded unless t he blk_ana_noise bit is set. as well, if rf noise is detected on a sensor, that sample will be discarded unless the blk_rf_noise bit is set. 6.8 lid closure status registers the lid closure status registers bits are only set if the lid closure detection circuitry is enabled (see section 6.24 ). these status bits indicate that the corresponding capacitive touch sensor exceeded the lid closure threshold. these bits will be set if a button press is detected because the lid closure threshold is a percentage of the sensor threshold. these bits are used in combination with the lid cl osure pattern register settings to determine when a lid closure event is flagged (see section 6.26 ). these bits are not sticky and will be cleared automa tically when the corresponding sensor count drops below the lid closure count threshold. the devic e does not flag a sensor as above or below the threshold until it has cycled through the queue (see section 6.25, "lid closure queue control register" ). application note: it is likely that recalibration will occur while th e lid is closed, resulting in negative delta counts until recalibration takes place. 6.9 gpio status register the gpio status register bits are set whenever on e of the gpio inputs changes states. if the ledx / gpiox pin is not configured as a gpio or as an input, the respective bit will be set to a logic 0. the bits are cleared when the register is read. table 6.10 lid closur e status registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 0ch r lid closure status 1 - s7_ lid s6_ lid s5_ lid s4_ lid s3_ lid s2_ lid s1_ lid 00h 0dh r lid closure status 2 - s14_ lid s13_ lid s12_ lid s11_ lid s10_ lid s9_ lid s8_ lid 00h table 6.11 gpio status register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 0eh r-c gpio status gpio8_ sts gpio7_ sts gpio6_ sts gpio5_ sts gpio4_ sts gpio3_ sts gpio2_ sts gpio1_ sts 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 47 revision 1.1 (02-04-11) datasheet 6.10 group status register the group status register indicates that one or more actions were detected on the grouped sensors. the detectable actions are described in section 5.5 and section 5.6 . bit 7 - lid - indicates that a lid closure event has been detected. this bit is sticky. when it is set, it will remain set until read. when a lid closure even t is detected, all new touches will be blocked. bit 6 - mult - this bit is asserted if one or more touches are being blocked because greater than n buttons are simultaneously pressed. bit 5 - reset - indicates that the device has exited the reset state. this bit may be set via a power on reset or upon release of the reset pin. w hen it is set, it will remain set until read. bit 3 - up - indicates that a slide was detected on increasing sensors (i.e. sensor 8 -> sensor 9 -> sensor 10) or on cs14 when the grouped sensors are ungrouped. this bit is also set if a touch (tap or press and hold event) is detected on the up portion of t he slider. if the group auto-repeat is enabled, the alert pin will be periodically asserted while a slide or press and hold event is detected. this bit will be cleared when read and re-set when a nother interrupt is generat ed. this bit is cleared automatically if the down bit is set. bit 2 - down - indicates that a slide was detected on decreasing sensors (i.e. sensor 14 -> sensor 13 -> sensor 12) or on cs8 when the grouped sensors are ungrouped. this bit is also set if a touch (tap or press and hold event) is detected on the down portion of the slider . if the group auto-repeat is enabled, the alert pin will be periodically asserted while a slide or press and hold event is detected. this bit will be cleared when read and re-set when another interrupt is generated. this bit is automatically cleared if the up bit is set. bit 1 - tap - indicates that a tap was detected on one of the sensors within the group. the relative position of the tap is indicated by the up and down bits so that a tap on the up side of the group will assert the up bit as well as the tap bit. if t he tap event is detected in the center of the slider that is neither up nor down, the bit will be se t; however, no interrupt will be generated. this bit is sticky and will remain set until read. bit 0 - ph - indicates that a press and hold event wa s detected on one of the sensors within the group. the relative position of the press is indicated by the up and down bits so a touch and hold on the up side of the group will assert the up bit as well as the ph bit. if the press and hold event is detected in the center of the slider that is neither up nor down, the bit will be set; however, no interrupt will be generated. this bit is sticky and will remain set until read. if the condition is still present, this bit will be re-set when the interrupt is generated. 6.11 sensor delta count registers table 6.12 group status register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 0fh r-c group status lid mult reset - up down tap ph 00h table 6.13 sensor delta count registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 10h r sensor 1 delta count sign 64 32 16 8 4 2 1 00h 11h r sensor 2 delta count sign 64 32 16 8 4 2 1 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 48 smsc cap1114 datasheet the sensor delta count registers store the delta count that is compared against the threshold used to determine if a touch has been detected. the coun t value represents a change in input due to the capacitance associated with a touch on one of the s ensors and is referenced to a calibrated base not touched count value. the delta is an instantaneous change and is updated once per sensor per sensing cycle (see section 5.4.4 - sensor cycle). the value presented is a standard 2s complement nu mber. in addition, the value is capped at a value of 7fh. a reading of 7fh indicates that the sensit ivity settings are too high and should be adjusted accordingly (see section 6.13 ). the value is also capped at a negative value of ffh for negative delta counts which may result upon a release. 6.12 queue control register 12h r sensor 3 delta count sign 64 32 16 8 4 2 1 00h 13h r sensor 4 delta count sign 64 32 16 8 4 2 1 00h 14h r sensor 5 delta count sign 64 32 16 8 4 2 1 00h 15h r sensor 6 delta count sign 64 32 16 8 4 2 1 00h 16h r sensor 7 delta count sign 64 32 16 8 4 2 1 00h 17h r sensor 8 delta count sign 64 32 16 8 4 2 1 00h 18h r sensor 9 delta count sign 64 32 16 8 4 2 1 00h 19h r sensor 10 delta count sign 64 32 16 8 4 2 1 00h 1ah r sensor 11 delta count sign 64 32 16 8 4 2 1 00h 1bh r sensor 12 delta count sign 64 32 16 8 4 2 1 00h 1ch r sensor 13 delta count sign 64 32 16 8 4 2 1 00h 1dh r sensor 14 delta count sign 64 32 16 8 4 2 1 00h table 6.14 queue control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 1eh r/w button queue control ----- q u e u e _ b [ 2 : 0 ] 0 3 h table 6.13 sensor delta count registers (continued) addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 49 revision 1.1 (02-04-11) datasheet the queue control register determines the number of consecutive samples for which a single sensor output is above the sensor threshold before a touch is detect ed. this is also used to determine the number of consecutive samples used to detect a button release. the queue applies independently to all channels. bits 2 - 0 - queue_b[2:0] - the nu mber of consecutive samples nece ssary to detect a touch. default is 3 consecutive samples. see table 6.15 . 6.13 data sensitivity registers the data sensitivity register controls the sensitivity of all button channels. bits 6- 4 delta_sense[2:0] - contro ls the sensitivity of a touch dete ction. the sensitivity settings act to scale the relative delta coun t value higher or lower based on the system parameters. a setting of 000b is the most sensitive while a settin g of 111b is the least sensitive (see ta b l e 6 . 1 7 ). at the more sensitive settings, touches are detected for a smalle r delta c corresponding to a lighter touch. these settings are more sensitive to noise and a noisy environment may flag more false touches than higher sensitivity levels. application note: a value of 128x is the most sensitive setting av ailable. at the most sensitive settings, the msb of the delta count register represents 64 out of ~25,000 which corresponds to a touch of approximately 0.25% of the base capacitance (or a c of 25ff from a 10pf base capacitance). conversely, a value of 1x is t he least sensitive setting available. at these settings, the msb of the delta count register corresponds to a delta count of 8192 counts out of ~25,000 which corresponds to a touch of approximately 33% of the base capacitance (or a c of 3.33pf from a 10pf base capacitance). table 6.15 queue_b bit decode queue_b[2:0] number of consecutive readings > threshold 21 0 00 0 1 00 1 1 01 0 2 0 1 1 3 (default) 10 0 4 10 1 5 11 0 6 11 1 7 table 6.16 data sensitivity register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 1fh r/w data sensitivity - delt a_sense[2:0] base_shift[3:0] 2fh downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 50 smsc cap1114 datasheet bits 3 - 0 - base_shift [3:0] - cont rols the scaling and data presentat ion of the base count registers. the higher the value of these bits, the larger the range and the lower the resolution of the data presented. the scale factor repres ents the multiplier to the bit-we ighting presented in these register descriptions. see ta b l e 6 . 1 8 . application note: the base_shift[3:0] bits normall y do not need to be updated. t hese settings will not affect touch detection or sensitivity. these bits ar e sometimes helpful in analyzing the cap sensing board performance and stability. table 6.17 delta_sense bit decode delta_sense[2:0] sensitivity multiplier 210 0 0 0 128x (most sensitive) 001 6 4 x 0 1 0 32x (default) 011 1 6 x 100 8 x 101 4 x 110 2 x 1 1 1 1x - (least sensitive) table 6.18 base_shift bit decode base_shift[3:0] data scaling factor 32 1 0 00 0 0 1 x 00 0 1 2 x 00 1 0 4 x 00 1 1 8 x 01 0 0 1 6 x 01 0 1 3 2 x 01 1 0 6 4 x 0 1 1 1 128x 1 0 0 0 256x all others 256x (default = 1111b) downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 51 revision 1.1 (02-04-11) datasheet 6.14 configuration register the configuration register contro ls general global functionality t hat affects the entire device. bit 7 - timeout - enables the timeout and idle functionality of the smbus protocol. ? 0 (default) - the smbus timeout and idle functi onality are disabled. the smbus interface will not time out if the clock line is held low. likewise, it will not reset if both the data and clock lines are held high for longer than 150us. this is used for i 2 c compliance. ? 1 - the smbus timeout and idle functionality are enabled. the smbus interfac e will time out if the clock line is held low for longer than 30ms. likewise, it will reset if both the data and clock lines are held high for longer than 150us. application note: the idle timeout does not apply to the deep sl eep state. when the cap1114 is operating in deep sleep, if the host communicates with a device other than the cap1114 and no stop bit is set, the cap1114 will not reset the pr otocol and, therefore, will not respond to communications until a stop bit is sent. bit 6 - pos_vol - determines the behavior of the pos[6:0] status bits when a grouped sensor is activated - see section 6.4 . ? 0 (default) - the pos[6:0] bits represent position information t hat indicates which sensor was touched or the last sensor touched during a slide. ? 1 - the pos[6:0] bits r epresent volumetric data. the position / volumetric data register is read / write. bit 5 - blk_dig_noise - determines whether the noise threshold is checked when determining whether to discard samples. ? 0 - the noise threshold is enabled and checked. if a sample is above the noise threshold, it is not included in the re-calibration routine. ? 1 (default) - the noise threshold is disabled. no samples are excluded from the re-calibration routine. bit 4 - blk_ana_noise - determines whether the no ise flag setting will block a touch detection as well as the analog calibration routine. ? 0 (default) if noise is detected on the low fre quency noise detector, a t ouch is blocked on the corresponding channel and will force the analog calibrat ion routine to retry. no te that this does not require the noise status register bits to be set. ? 1 - a touch is not blocked if low frequency nois e is detected. likewise, the analog calibration routine will not retry if the analog noise bit is set. bit 3 - max_dur_en_b - determines whether the maximum duration recalibration is enabled for non- grouped sensors. ? 0 - the maximum duration recalibration functionality is disabled. a press may be held indefinitely and no re-calibration will be performed on any button. ? 1 (default) - the maximum duratio n recalibration functionality is enabled. if a press is held for longer than the max_dur_b bit settings, the re -calibration routine will be restarted (see section 6.16 ). table 6.19 configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 20h r/w configuration time out pos_ vol blk_ dig_ noise blk_ ana_ noise max_ dur_ en_b rpt_ en_b max_ dur_ en_g rpt_ en_g 29h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 52 smsc cap1114 datasheet bit 2 - rpt_en_b - determines whether repeat rate is enabled for all buttons. ? 0 (default) - repeat rate is not enabled. an interrupt will be generated when a touch is detected. ? 1 - repeat rate is enabled for all buttons. bit 1 - max_dur_en_g - determines whether the maximum duration recalibration is enabled for grouped sensors. ? 0 (default) - the maximum duratio n recalibration functionality is disabled. a press may be held indefinitely and no re-calibration will be performed on any button. ? 1 - the maximum duration recalibration functionalit y is enabled. if a press is held for longer than the max_dur_g bit settings, the re-calibration routine will be restarted (see section 6.18 ). bit 0 - rpt_en_g - determines the interrupt mechanism used when a press and hold event is detected on a grouped sensor. ? 0 - an interrupt will be generated when a press and hold event is detected. ? 1 (default) - an interrupt will be generated when a press and hold event is detected and at the programmed repeat rate so long as the sensor is pressed. 6.15 sensor enable register the sensor enable register determines whether a capacitive touch sensor input is included in the sampling cycle in the fully active state. the length of the sampling cycle is not affected by the number of sensors measured. bit 7 - gp_en - enables the grouped sensors to be included during the sampling cycle. ? 0 - all sensors in the grouped sensors will no t be sampled regardless of the state of the vol_up_down bit. ? 1 (default) - grouped sensors will be sampled. individual channels are enabled via the group sampling enable register. bit 6 - s7_en - enables the cs7 input to be included durin g the sampling cycle. ? 0 - the cs7 input is not included in the sampling cycle. ? 1 (default) - the cs7 input is included in the sampling cycle. bit 5 - s6_en - enables the cs6 input to be included durin g the sampling cycle. bit 4 - s5_en - enables the cs5 input to be included durin g the sampling cycle. bit 3 - s4_en - enables the cs4 input to be included durin g the sampling cycle. bit 2 - s3_en - enables the cs3 input to be included durin g the sampling cycle. bit 1 - s2_en - enables the cs2 input to be included durin g the sampling cycle. bit 0 - s1_en - enables the cs1 input to be included durin g the sampling cycle. table 6.20 sensor enable register a d d rr / wr e g i s t e rb 7 b 6b 5b 4b 3b 2b 1b 0d e f a u l t 21h r/w sensor enable gp_en s7_en s6_en s5_en s4_en s3_en s2_en s1_en ffh downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 53 revision 1.1 (02-04-11) datasheet 6.16 button configuration register the button configuration register controls timings associated with the capacitive sensor channels 1 - 7 that are not grouped. bits 7 - 4 - max_dur_b [3:0] - (default 1010b) - determines the maximum time that a button is allowed to be pressed until the capacitive t ouch sensor is recalibrated as shown in ta b l e 6 . 2 2 . bits 3 - 0 - rpt_rate_b[3:0] - (default 0100b) determines the time duration between interrupt assertions when auto repeat is enabled. the reso lution is 35ms the range is from 35ms to 560ms as shown in ta b l e 6 . 2 3 . table 6.21 button configuration register a d d rr / w r e g i s t e r b 7 b 6 b 5b 4b 3b 2b 1b 0d e f a u l t 22h r/w button configuration max_dur_b[3:0] rpt_rate_b[3:0] a4h table 6.22 max_dur_b and max_dur_g bit decode max_dur_b[3:0] a nd max_dur_g[3:0] time before recalibration 321 0 0 0 0 0 560ms 0 0 0 1 840ms 0 0 1 0 1120ms 0 0 1 1 1400ms 0 1 0 0 1680ms 0 1 0 1 2240ms 0 1 1 0 2800ms 0 1 1 1 3360ms 1 0 0 0 3920ms 1 0 0 1 4480ms 101 0 5600ms (default for cs1 - cs7) 1 0 1 1 6720ms 1 1 0 0 7840ms 110 1 8906ms (default for grouped sensors) 1 1 1 0 10080ms 1 1 1 1 11200ms downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 54 smsc cap1114 datasheet 6.17 group configuration register 1 the group configuration 1 register controls timing s associated with the capacitive sensor channels 8 - 14 that are included in the group. bits 7-4 - rpt_rate_ph[3:0] - (default 0100b) determines the time duration between interrupt assertions when auto repeat is enabled. this setting applies when a press and hold condition is detected on the on the grouped sensors (see section 5.5 ). the resolution is 35ms the range is from 35ms to 560ms as shown in table 6.23 . bits 3- 0 - m_press[3:0] - (default 0111b) - dete rmines the minimum amount of time that a sensor in the group must detect a button press to detect a press and hold event. if the sensor detects a touch for longer t han the m_press[3:0] settings, a press and hold ev ent is detected. this has no table 6.23 rpt_rate_b / sl / ph bit decode rpt_rate_b / rpt_rate_sl / rpt_rate_ph interrupt repeat rate 32 1 0 0 0 0 0 35ms 0 0 0 1 70ms 0 0 1 0 105ms 0 0 1 1 140ms 01 0 0 175ms (default) 0 1 0 1 210ms 0 1 1 0 245ms 0 1 1 1 280ms 1 0 0 0 315ms 1 0 0 1 350ms 1 0 1 0 385ms 1 0 1 1 420ms 1 1 0 0 455ms 1 1 0 1 490ms 1 1 1 0 525ms 1 1 1 1 560ms table 6.24 group configuration register 1 addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 23h r/w group configuration 1 rpt_rate_ph[3:0] m_press[3:0] 47h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 55 revision 1.1 (02-04-11) datasheet effect on whether a slide is detect ed within the group. if a slide is detected before or after the press has been confirmed, it is treated as a separate event. this is the maximum amount of time that a s ensor in the group can detect a button press to differentiate between a tap and a press and hold. if a sensor detects a touch for less than or equal to the m_press[3:0] settings, a tap event is detected. the resolution is 35ms the range is from 35ms to 560ms as shown in table 6.25 . 6.18 group configuration register 2 the group configuration 2 register controls timing s associated with the capacitive sensor channels 8 - 14 that are included in the group. table 6.25 m_press bit decode m_press[3:0] m_press time 32 1 0 0 0 0 0 35ms 0 0 0 1 70ms 0 0 1 0 105ms 0 0 1 1 140ms 0 1 0 0 175ms 0 1 0 1 210ms 0 1 1 0 245ms 01 1 1 280ms (default) 1 0 0 0 315ms 1 0 0 1 350ms 1 0 1 0 385ms 1 0 1 1 420ms 1 1 0 0 455ms 1 1 0 1 490ms 1 1 1 0 525ms 1 1 1 1 560ms table 6.26 group configuration register 2 addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 24h r/w group configuration 2 max_dur_g[3:0] rpt_rate_sl[3:0] d4h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 56 smsc cap1114 datasheet bits 7 - 4 - max_dur_g [3:0] - (default 1101b) - determines the maximum time that a button is allowed to be pressed until the capacitive t ouch sensor is recalibrated as shown in ta b l e 6 . 2 2 . bits 3 - 0 - rpt_rate_sl[3:0] - (default 0100b) determines the time duration between interrupt assertions when auto repeat is enabled. this se tting applies when a slide is detected on the grouped sensors and acts as the base repeat rate th at is adjusted based on the slide speed (see section 5.5.5 ). the resolution is 35ms the range is from 35ms to 560ms as shown in table 6.23 . 6.19 calibration enable register the calibration enable register controls whether the indicated capacitive touch sensor input is automatically re-calibrated. if a sensor is not enabled, the co rresponding calibration enable bit is ignored. bit 7- g_cen - enables all sensors in the group to be re-calibrated simultaneously. ? 0 - none of the grouped channels are automatica lly re-calibrated. they can be re-calibrated manually by setting the g_cal bit. ? 1 (default) - all of the grouped channels are au tomatically re-calibrated as the cap1114 samples. bit 6 - s7_cen - enables the cs7 input to be re-calibrated automatically. ? 0 - the cs7 input is not automatically re-calibrated. ? 1 (default) - the cs7 input is automatica lly re-calibrated as the cap1114 samples. bit 5 - s6_cen - enables the cs6 input to be re-calibrated automatically. bit 4 - s5_cen - enables the cs5 input to be re-calibrated automatically. bit 3 - s4_cen - enables the cs4 input to be re-calibrated automatically. bit 2 - s3_cen - enables the cs3 input to be re-calibrated automatically. bit 1 - s2_cen - enables the cs2 input to be re-calibrated automatically. bit 0 - s1_cen - enables the cs1 input to be re-calibrated automatically. 6.20 calibration activate registers table 6.27 calibration enable register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 25h r/w calibration enable g_ cen s7_ cen s6_ cen s5_ cen s4_ cen s3_ cen s2_ cen s1_ cen ffh table 6.28 calibration activate registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 26h r/w calibration activate g_ cal s7_ cal s6_ cal s5_ cal s4_ cal s3_ cal s2_ cal s1_ cal 00h 46h r/w grouped sensor calibration activate s14_ cal s13_ cal s12_ cal s11_ cal s10_ cal s9_ cal s8_ cal 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 57 revision 1.1 (02-04-11) datasheet the calibration activate registers force the respecti ve sensors to be re-calibrated. when a bit is set, the corresponding capacitive touch sensor will be re-calibrated and the bit will be automatically cleared once the re-calibration routine has finished. this calibration routine will update the internal analog controls and gain settings followed by a digital calibration to capture the base count for touch detection. during the re-calibration routine, the sensors will not detect a press for up to 600ms and the sensor base count register values will be invalid . during this time, any press on the corresponding sensors will invalidate the re-calibration. 6.20.1 calibration activate - 26h bit 7 - g_cal - when set, all sensors in the group ar e re-calibrated. this bit is automatically cleared once all of the sensors in the group have been re-calibrated successfully. bit 6 - s7_cal - when set, the cs7 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 5 - s6_cal - when set, the cs6 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 4 - s5_cal - when set, the cs5 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 3 - s4_cal - when set, the cs4 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 2 - s3_cal - when set, the cs3 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 1 - s2_cal - when set, the cs2 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 0 - s1_cal - when set, the cs1 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. 6.20.2 grouped sensor cali bration activate - 46h bit 6 - s14_cal - when set, the cs14 input is re-ca librated. this bit is autom atically cleared once the sensor has been re-calibrated successfully. bit 5 - s13_cal - when set, the cs13 input is re-ca librated. this bit is autom atically cleared once the sensor has been re-calibrated successfully. bit 4 - s12_cal - when set, the cs12 input is re-ca librated. this bit is autom atically cleared once the sensor has been re-calibrated successfully. bit 3 - s11_cal - when set, the cs11 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 2 - s10_cal - when set, the cs10 input is re-ca librated. this bit is autom atically cleared once the sensor has been re-calibrated successfully. bit 1 - s9_cal - when set, the cs9 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. bit 0 - s8_cal - when set, the cs8 input is re-calibrated. this bit is automatically cleared once the sensor has been re-calibrated successfully. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 58 smsc cap1114 datasheet 6.21 interrupt enable registers the interrupt enable registers determine whether a button press or gpio input changing state causes the interrupt pin to be asserted. 6.21.1 interrupt enable 1 bit 7 - g_int_en - enables the interrupt pin to be asserted if a slide, tap, or press and hold action is detected on the grouped sensors. ? 0 - the interrupt pin will not be asserted if a slide, tap, or press and hold action is detected on the grouped sensors (associated with the up, down, tap, and ph status bits). ? 1 (default) - the interrupt pin will asserted if a s lide, tap, or press and hold event is detected on the grouped sensors (associated with the up, down, tap, and ph status bits). bit 6 - s7_int_en - enables the interrupt pin to be asserted if a touch is detected on cs7 (associated with the cs7 status bit). ? 0 - the interrupt pin will not be asserted if a to uch is detected on cs7 (associated with the cs7 status bit). ? 1 (default) - the interrupt pin will be asserted is detected on cs7 (associat ed with the cs7 status bit). bit 5 - s6_int_en - enables the interrupt pin to be asserted if a touch is detected on cs6 (associated with the cs6 status bit). bit 4 - s5_int_en - enables the interrupt pin to be asserted if a touch is detected on cs5 (associated with the cs5 status bit). bit 3 - s4_int_en - enables the interrupt pin to be asserted if a touch is detected on cs4 (associated with the cs4 status bit). bit 2 - s3_int_en - enables the interrupt pin to be asserted if a touch is detected on cs3 (associated with the cs3 status bit). bit 1 - s2_int_en - enables the interrupt pin to be asserted if a touch is detected on cs2 (associated with the cs2 status bit). bit 0 - s1_int_en - enables the interrupt pin to be asserted if a touch is detected on cs1 (associated with the cs1 status bit). 6.21.2 interrupt enable 2 these bits enable the interrupt pin to be a sserted when the gpiox status bit has been set. bit 7 - gpio8_int_en - enables the interrupt pin to be asserted if the gpio8 status bit has been set. ? 0 (default) - the interrupt pin will not be a sserted if the gpio8 status bit has been set. ? 1 - the interrupt pin will be asserted if the gpio8 status bit has been set. table 6.29 interrupt enable registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 27h r/w interrupt enable 1 g_ int_ en s7_ int_ en s6_ int_ en s5_ int_ en s4_ int_ en s3_ int_ en s2_ int_ en s1_ int_ en ffh 28h r/w interrupt enable 2 gpio8_ int_en gpio7_ int_en gpio6_ int_en gpio5_ int_en gpio4_ int_en gpio3_ int_en gpio2_ int_en gpio1_ int_en 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 59 revision 1.1 (02-04-11) datasheet bit 6 - gpio7_int_en - enables the interrupt pin to be asserted if the gpio7 status bit has been set. bit 5 - gpio6_int_en - enables the interrupt pin to be asserted if the gpio6 status bit has been set. bit 4 - gpio5_int_en - enables the interrupt pin to be asserted if the gpio5 status bit has been set. bit 3 - gpio4_int_en - enables the interrupt pin to be asserted if the gpio4 status bit has been set. bit 2 - gpio3_int_en - enables the interrupt pin to be asserted if the gpio3 status bit has been set. bit 1 - gpio2_int_en - enables the interrupt pin to be asserted if the gpio2 status bit has been set. bit 0 - gpio1_int_en - enables the interrupt pin to be asserted if the gpio1 status bit has been set. 6.22 sleep channel control register the sleep channel control register determines which sensors are sampled when the device is placed into the sleep state. application note: if this register is updated whil e the device is in the sleep st ate, the conversion cycle may be extended or for the first measurement of the ne w capacitive touch sensors. it will correct itself on subsequent measurement cycles. application note: if this register is updated while the device is in the sleep state, it is recommended to force a recalibration routine on newly activated channels. bit 7 - gr_sleep - enables the grou ped sensors to be sa mpled when the device is placed into the sleep state. ? 0 (default) - grouped sensors are not sample d when the device is in the sleep state. ? 1 - the grouped sensors are sampled when the device is in sleep mode. if a tap, slide, or touch and hold is detected, the appropriate status bit is set and an interrupt generated. individual sensors will be enabled via the group sensor enable register. bit 6 - s7_sleep - enables the cs7 sensor to be sampled when the device is placed into sleep mode. ? 0 (default) - the cs7 input is not sample d when the device is in the sleep state ? 1 - the cs7 input is sampled when the device is in sleep mode. if a touch is detected, the status bit is set and an interrupt generated. bit 5 - s6_sleep - enables the cs6 sensor to be sa mpled when the device is placed into the sleep state. bit 4 - s5_sleep - enables the cs5 sensor to be sa mpled when the device is placed into the sleep state. bit 3 - s4_sleep - enables the cs4 sensor to be sa mpled when the device is placed into the sleep state. bit 2 - s3_sleep - enables the cs3 sensor to be sa mpled when the device is placed into the sleep state. bit 1 - s2_sleep - enables the cs2 sensor to be sa mpled when the device is placed into the sleep state. table 6.30 sleep channel control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 29h r/w sleep channel control gr_ sleep s7_ sleep s6_ sleep s5_ sleep s4_ sleep s3_ sleep s2_ sleep s1_ sleep 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 60 smsc cap1114 datasheet bit 0 - s1_sleep - enables the cs1 sensor to be sa mpled when the device is placed into the sleep state. 6.23 multiple touch configuration register the multiple touch configuration register controls t he settings for the multiple touch detection circuitry. these settings determine the number of sensors associated with this detection and the cap1114 device behavior. bit 7 - mult_blk_en - enables the multiple button blocking circuitry. ? 0 - the multiple touch circuitry is disabl ed. the device will not block multiple touches. ? 1 (default) - the multiple touch circuitry is ena bled. the device will accept the number of touches equal to programmed multiple touch threshold and block all others. it will remember which sensor is valid and block all others until that sensor has been released. bits 3 - 2 - b_mult_t[1:0] - determines the number of simultaneous touches on all buttons (excluding the grouped buttons) before a multiple touch event is flagged. if the number of multiple buttons touches is greater than the threshold value, a multip le touch event is flagged. the bit decode is given by ta b l e 6 . 3 2 . bits 1 - 0 - g_mult_t[1:0] - determines the number of simultaneous touches on all grouped buttons before a multiple touch event is flagged. if the number of multiple buttons touc hes is greater than the threshold value, a multiple touch event is flagged. the bit decode is given by table 6.33 . table 6.31 multiple touch configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2ah r/w multiple touch config mult_ blk_en - - - b_mult_t[1:0] g_mult_t[1:0] 82h table 6.32 b_mult_t bit decode b_mult_t[1:0] number of simultaneous touches 10 0 0 1 (default) 01 2 10 3 11 4 table 6.33 g_mult_t bit decode g_mult_t[1:0] number of simultaneous touches 10 00 2 01 3 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 61 revision 1.1 (02-04-11) datasheet 6.24 lid closure configuration register the lid closure configuration register controls th e settings for the lid closure detection circuitry. bit 7 - lid_close - enables the lid closure circuitry. ? 0 (default) - the lid closure circuitry is disabled. ? 1 the lid closure circuitry is enabled. the devi ce will use the lid closur e status registers in combination with the lid closure pattern register settings to determine when a lid closure event is flagged. in addition, the noise status bits are associated with lid closure. bit 1 - comp_ptrn - determines how the lid closure status registers are compared against the lid closure pattern registers. see section 6.26 for details on how the lid closure pattern registers are used. ? 0 (default) - the lid closure status registers ar e not compared directly against the lid closure pattern registers. instead, the number of bits in the lid closure status registers is compared to the number of bits in the lid closure pattern regi sters to determine whether a lid closure event is flagged. ? 1 - the lid closure status registers are compared directly against the lid closure pattern registers. if the bits set in the lid closure pattern are also set in the lid status registers, a lid closure event is flagged. bit 0 - lid_alrt - enables an interrupt if a lid closure event occurs. ? 0 (default) - if a lid closure event occurs, the alert pin is not asserted. ? 1 - if a lid closure event occurs, the alert pin will be asserted. 6.25 lid closure queue control register the lid closure queue control register determine s the number of consecutive samples for which a single sensor output is above the lid closure threshold before it is flagged. a value of 0000b is decoded as 1. 1 0 4 (default) 11 1 table 6.34 lid closure configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2bh r/w lid closure config lid_ close ----- comp_ ptrn lid_ alrt 00h table 6.35 lid closure queue control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2ch r/w lid closure queue control - - - - - queue_l_b[2:0] 02h table 6.33 g_mult_t bit decode (continued) g_mult_t[1:0] number of simultaneous touches 10 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 62 smsc cap1114 datasheet bits 2 - 0 - queue_l[2:0] - the number of cons ecutive samples from an individual sensor necessary to set the lid closure status bit associated with the sensor. the queue applies individually to all sensors (including both buttons and grouped sensors) and applies to setting and clearing the respective status bit. the queue can range from 1 sample to 8 consecutive samples with a default of 2 consecutive samples. 6.26 lid closure pattern registers the lid closure pattern registers act as a pattern to identify an expected sensor profile that is consistent with lid closure. they are onl y used when lid closure is enabled (see section 6.24, "lid closure configuration register" ). there are two methods for how the lid closure status registers are used with the lid closure pattern registers: as sp ecific sensors that must exceed the lid closure threshold or as the number of s ensors that must exceed the lid closure threshold. which method is used is based on bit 1 in the lid closure confi guration register. the methods are described below. a lid closure event is flagged in the group status register (see section 6.10, "group status register" ). 1. specific sensors: if the bits set in the lid closu re pattern are also set in the lid status registers, a lid closure event is flagged. 2. number of sensors: the number of bits in the lid closure status registers is compared to the number of bits in the lid closure pattern regist ers to determine whether a lid closure event is flagged. if any one of the conditions below is met, the lid closure event is flagged. ? if the number of bits in lid closure status 1 register equals or exceeds the number of bits in the lid closure pattern 1 register, a lid closure event is flagged. in other words, if the number of simultaneous sensors 1-7 exceeding the lid closure threshold meets or exceeds the number of bits in the lid closure pattern 1 register, a lid closure event is flagged. ? if the number of bits in lid closure status 2 register equals or exceeds the number of bits in the lid closure pattern 2 register, a lid closure event is flagged. in other words, if the number of simultaneous grouped sensors 8-14 exceedi ng the lid closure threshold meets or exceeds the number of bits in the lid closure pattern 2 register, a lid closure event is flagged. ? if the total number of bits in both the lid clo sure status 1 and 2 registers equals or exceeds the total number of bits in both the lid closure pattern 1 and 2 registers, a lid closure event is flagged. in other words, if the total number of sensors above the lid closure threshold is greater than or equal to the nu mber of sensors required for both lid closure patterns, a lid closure event is flagged. ? a value of 00h in both registers will effectivel y disable the lid closure circuitry and clear the lid status bit. table 6.36 lid closure pattern registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2dh r/w lid closure pattern 1 - s7_lm s6_lm s5_lm s4_lm s3_lm s2_lm s1_lm 7fh 2eh r/w lid closure pattern 2 s14_ lm s13_ lm s12_ lm s11_ lm s10_ lm s9_lm s8_lm 7fh downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 63 revision 1.1 (02-04-11) datasheet 6.27 recalibration configuration register the recalibration configuration regi ster controls the automatic re-cal ibration routine settings as well as advanced controls to program the sensor threshold register settings and interrupt behavior. bit 7 - but_ld_th - enables setting all button sensor threshold registers by writing to the sensor 1 threshold register. ? 0 - each sensor x threshold register is updated individually. ? 1 (default) - writing the sensor 1 threshold re gister will automatically overwrite the sensor threshold registers for all buttons (sensor threshold 1 through sensor threshold 7). the individual sensor x threshold registers (sensor 2 threshold through sensor 7 threshold) can be individually updated at any time. bit 6 - gp_ld_th - enables setting the group threshol d register by writing to the sensor 1 threshold register. ? 0 (default) - the group threshold register is updated independently of the sensor 1 threshold register. ? 1 - writing the sensor 1 threshold register automatically overwrites the group threshold register settings. bits 4 - 3 - neg_delta_cnt[1:0] - determines th e number of negative delta counts necessary to trigger a digital re-calibration as shown in ta b l e 6 . 3 8 . bits 2 - 0 - cal_cfg[2:0] - determines the update ti me and number of samples of the automatic re- calibration routine. the settings apply to all se nsors universally (though individual sensors and the group can be configured to support re-calibration - see section 6.19 ). table 6.37 recalibration configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2fh r/w recalibration configuration but_ ld_th gp_ ld_th - neg_delta_ cnt[1:0] cal_cfg[2:0] 93h table 6.38 neg_delta_cnt bit decode neg_delta_cnt[1:0] number of consecut ive negative delta count values 10 00 8 01 1 6 1 0 32 (default) 1 1 none (disabled) downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 64 smsc cap1114 datasheet note 6.1 recalibration samples refers to the number of samples that are measured and averaged before the base count is updated. note 6.2 update time refers to the amount of time (i n polling cycle periods) that elapses before the base count is updated. 6.28 sensor threshold registers the sensor threshold registers store the delta thresh old that is used to dete rmine if a touch has been detected. when a touch occurs, the input signal of the corresponding sensor changes due to the table 6.39 cal_cfg bit decode cal_cfg[2:0] recalibration samples (see note 6.1 ) update time (see note 6.2 ) 210 0 0 0 16 16 001 3 2 3 2 010 6 4 6 4 0 1 1 256 256 (default) 1 0 0 256 1024 1 0 1 256 2048 1 1 0 256 4096 1 1 1 256 7936 table 6.40 sensor threshold registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 30h r/w sensor 1 threshold -6 43 21 68421 4 0 h 31h r/w sensor 2 threshold -6 43 21 68421 4 0 h 32h r/w sensor 3 threshold -6 43 21 68421 4 0 h 33h r/w sensor 4 threshold -6 43 21 68421 4 0 h 34h r/w sensor 5 threshold -6 43 21 68421 4 0 h 35h r/w sensor 6 threshold -6 43 21 68421 4 0 h 36h r/w sensor 7 threshold -6 43 21 68421 4 0 h 37h r/w group threshold -6 43 21 68421 4 0 h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 65 revision 1.1 (02-04-11) datasheet capacitance associated with a touch. if the sens or input change exceeds the threshold settings, a touch is detected. when the but_ld_th bit is set (see section 6.27 - bit 7), writing data to the sensor 1 threshold register will update all of the button th reshold registers (31h - 36h inclusive). when the gp_ld_th bit is set (see section 6.27 - bit 6), writing data to the sensor 1 threshold register (30h) will update the group threshold register (37h) an d the cs14 threshold register (40h). individual button registers may be updated independen tly of the sensor 1 threshold settings. similarly, the up and down threshold registers may be updat ed independently of the group threshold register. 6.29 button noise threshold registers the button noise threshold registers control the va lue of a secondary internal threshold to detect noise and improve the automatic recalibration routine. if a capacitive touch sensor output exceeds the button noise threshold but does not exceed the sensor threshold, it is determined to be caused by a noise spike. that sample is not us ed by the automatic re-calibration routine. the button noise threshold is proportional to the programmed threshold as shown in table 6.42 . 6.29.1 button noise threshold 1 register the button noise threshold 1 register controls the noise threshold for capacitive touch sensors 1-4. bits 7-6 - ch4_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 4. bits 5-4 - ch3_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 3. bits 3-2 - ch2_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 2. bits 1-0 - ch1_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 1. table 6.41 button noise threshold registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 38h r/w button noise threshold 1 cs4_bn_th [1:0] cs3_bn_th [1:0] cs2_bn_th [1:0] cs1_bn_th [1:0] aah 39h r/w button noise threshold 2 gr_bn_th [1:0] cs7_bn_th [1:0] cs6_bn_th [1:0] cs5_bn_th [1:0] aah table 6.42 csx_bn_th bit decode csx_bn_th[1:0] threshold divide setting 100 0 6.25% 011 2 . 5 % 1 0 25% (default) 115 0 % downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 66 smsc cap1114 datasheet 6.29.2 button noise threshold 2 register the button noise threshold 2 register controls the noise threshold for capacitive touch sensors 5 - 7 and the grouped sensors. bits 7-6 - gr_bn_th[1:0] - controls the noise threshold for all grouped capacitive touch sensors. bits 5-4 - ch7_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 7. bits 3-2 - ch6_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 6. bits 1-0 - ch5_bn_th[1:0] - controls the noise threshold for capacitive touch sensor 5. 6.30 lid closure threshold registers the lid closure threshold registers control the value of a secondary internal threshold to detect noise potentially generated by lid closure. if a capaciti ve touch sensor output exceeds the lid closure threshold, the appropriate status bit is se t in the lid closure status register (see section 6.8 ). the lid closure threshold is proportional to the programmed sensor threshold as shown in table 6.44 . 6.30.1 lid closure threshold 1 register the lid closure threshold 1 register controls the lid closure threshold for capacitive touch sensors 1-4. bits 7-6 - cs4_ld_th[1:0] - controls the lid closure threshold for capacitive touch sensor 4. table 6.43 lid closure threshold registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 3ah r/w lid closure threshold 1 cs4_ld_th [1:0] cs3_ld_th [1:0] cs2_ld_th [1:0] cs1_ld_th [1:0] aah 3bh r/w lid closure threshold 2 cs8_ld_th [1:0] cs7_ld_th [1:0] cs6_ld_th [1:0] cs5_ld_th [1:0] aah 3ch r/w lid closure threshold 3 cs12_ld_th [1:0] cs11_ld_th [1:0] cs10_ld_th [1:0] cs9_ld_th [1:0] aah 3dh r/w lid closure threshold 4 ---- cs14_ld_th [1:0] cs13_ld_th [1:0] 0ah table 6.44 csx_ld_th bit decode csx_ld_th[1:0] threshold divide setting 100 0 6.25% 011 2 . 5 % 1 0 25% (default) 115 0 % downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 67 revision 1.1 (02-04-11) datasheet bits 5-4 - cs3_ld_th[1:0] - controls the lid closure threshold for capacitive touch sensor 3. bits 3-2 - cs2_ld_th[1:0] - controls the noise threshold for capacitive touch sensor 2. bits 1-0 - cs1_ld_th[1:0] - controls the noise threshold for capacitive touch sensor 1. 6.30.2 lid closure threshold 2 register the lid closure threshold 2 register controls the lid closure threshold for capacitive touch sensors 5 - 8. bits 7-6 - cs8_ld_th[1:0] - contro ls the lid closure threshold for capacitive touch sensor 8 (one of the grouped sensors). bits 5-4 - cs7_ld_th[1:0] - controls the lid closure threshold for capacitive touch sensor 7. bits 3-2 - cs6_ld_th[1:0] - controls the lid closure threshold for capacitive touch sensor 6. bits 1-0 - cs5_ld_th[1:0] - controls the lid closure threshold for capacitive touch sensor 5. 6.30.3 lid closure threshold 3 register the lid closure threshold 3 register controls the lid closure threshold for capacitive touch sensors 9 - 12. bits 7-6 - cs12_ld_th[1:0] - controls the lid clos ure threshold for capacitive touch sensor 12 (one of the grouped sensors). bits 5-4 - cs11_ld_th[1:0] - controls the lid closure threshold for capacitive touch sensor 11 (one of the grouped sensors). bits 3-2 - cs10_ld_th[1:0] - controls the lid clos ure threshold for capacitive touch sensor 10 (one of the grouped sensors). bits 1-0 - cs9_ld_th[1:0] - contro ls the lid closure threshold for capacitive touch sensor 9 (one of the grouped sensors). 6.30.4 lid closure threshold 4 register the lid closure threshold 4 register controls the lid closure threshold for capacitive touch sensors 13 - 14. bits 3-2 - cs14_ld_th[1:0] - controls the lid clos ure threshold for capacitive touch sensor 14 (one of the grouped sensors). bits 1-0 - cs13_ld_th[1:0] - controls the lid clos ure threshold for capacitive touch sensor 13 (one of the grouped sensors). 6.31 slider velocity configuration register the slider velocity configuration re gister controls the speed sensitiv e behaviors of the slider, allowing the number of interrupts to be incr eased as the slide speed increases. table 6.45 slider velocity configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 3eh r/w slider velocity configuration acc_ int_en max_int[2:0] slide_time [1:0] rpt_scale [1:0] c5h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 68 smsc cap1114 datasheet bit 7 - acc_int_en - enables the device to generate extra interrupts after an accelerated slide has been detected. ? 0 - the device will not generate extra interrupts during or after the slide has been detected. ? 1 (default) - the device will generate extra interrup ts after an accelerated slide is detected. the number of extra interrupts gener ated will be proportional to the speed of the accelerated slide but will not exceed the maximum number of extra interrupts as determined by the max_int bits. bits 6-4 - max_int[2:0] - (default 100b) determine the maximum number of ex tra interrupts that will be generated after a single slide (regardless of length ). the variable t is the actual slide time and the parameter slide_time is set by bits [3:2] of this register. bits 3-2 - slide_time[1:0] - (default 01b) - determi nes how fast a slide must be to generate extra interrupts. this is the maximum slide time that will re sult in extra interrupts being generated. if the slide time is greater than slide_time, no extra interrupts will be generated. bits 1 - 0 - rpt_scale[1:0] - (default 01b) - determines how much to increase the repeat rate based on slide speed. the slide speed is determi ned by counting how many sensors are touched in approximately 100msec. the repeat rate is then increased various amounts based on the rpt_scale parameter. when read in ta b l e 6 . 4 8 , the repeat rate given is the nu mber of measurem ent cycles between interrupts generated. table 6.46 max_int bit decode max_int[2:0] max # interrupts # interrupts for t < 1/2 slide_time # interrupts for 1/2 < t < 3/4 slide_time # interrupts for 3/4 < t < full slide_time 21 0 00 0 0 0 0 0 00 1 1 1 0 0 01 0 2 2 1 0 01 1 3 3 1 0 10 0 4 4 2 1 10 1 5 5 2 1 11 0 6 6 3 1 11 1 7 7 3 1 table 6.47 slide_time bit decode slide_time[1:0] approximate slide time (msec) 10 0 0 350 0 1 560 (default) 1 0 770 1 1 980 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 69 revision 1.1 (02-04-11) datasheet note 6.3 if the repeat rate for the slider is set at 1 05msec or lower, the 11b case will use the fixed values of 140, 105 and 70msec, respectively. 6.32 digital recalibration control register the digital recalibration control register forces chann els to perform a digital calibration as if there were no base count. when a bit is set, the corresponding capacitive touch sensor will be re-calibrated and the bit will be automatically cleared once the re -calibration routine has finished. this calibration routine will update the base co unt for touch detection. bit 7 - gp_d_cal - forces the grouped sensors to perform a digital recalibration as if there were no base count. bit 6 - cs7_d_cal - forces cs7 to perform a digital recalibration as if there were no base count. bit 5 - cs6_d_cal - forces cs6 to perform a digital recalibration as if there were no base count. bit 4 - cs5_d_cal - forces cs5 to perform a digital recalibration as if there were no base count. bit 3 - cs4_d_cal - forces cs4 to perform a digital recalibration as if there were no base count. bit 2 - cs3_d_cal - forces cs3 to perform a digital recalibration as if there were no base count. bit 1 - cs2_d_cal - forces cs2 to perform a digital recalibration as if there were no base count. bit 1 - cs1_d_cal - forces cs1 to perform a digital recalibration as if there were no base count. table 6.48 rpt_scale bit decode number of sensors in 100msec repeat rate (msec) rpt_scale[1:0] 00 01 10 11 >=5 35 35 35 35 43 5 3 5 3 57 0 33 5 3 5 7 0 1 0 5 2 35 70 105 140 1 rpt_rate_sl table 6.49 digital recali bration control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 3fh r/w digital recalibration control gp_ d_cal cs7_ d_cal cs6_ d_cal cs5_ d_cal cs4_ d_cal cs3_ d_cal cs2_ d_cal cs1_ d_cal 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 70 smsc cap1114 datasheet 6.33 configuration 2 register bit 7 - inv_link_tran - determines the behavior of the linked led transition controls (see section 6.45, "linked led transition control registers" ). ? 0 (default) - when set, the linked led transiti on controls set the min duty cycle equal to the max duty cycle. ? 1 - when set, the linked led transition controls wil l invert the touch signal. for example, a touch signal will be inverted to a non-touched signal. bit 4 - blk_pol_mir - determines whether the led mi rror control register bits are linked to the led polarity bits. ? 0 (default) - when the led polarity controls are set, the corresponding led mirror control is automatically set. likewise, when the led polari ty controls are clear ed, the corresponding led mirror control is cleared. ? 1 - when the led polarity controls are chang ed, the corresponding led mirror control is not automatically changed. bit 3 - show_rf_noise - determines whether the noise status bits will show rf noise as the only input source. ? 0 (default) - the noise status registers will show both rf noise and low frequency noise if either is detected on a capaciti ve touch sensor channel. ? 1 - the noise status registers will only show rf noise if it is detected on a capacitive touch sensor channel. generic noise will still be detected and touches w ill be blocked normally; however, the status bits will not be updated. bit 2 - blk_rf_noise - blocks the analog rf no ise detector from preventing touches. ? 0 (default) - if rf noise is detected by the analog block, any pending touch is blocked on the corresponding channel. during the analog calibration routine, rf noise will cause it to retry. note that this does not require that noise status bits be set. ? 1 - a touch is not blocked even if rf noise is detected. likewise, the analog calibration routine will not retry if rf noise is detected. bit 1 - vol_up_down - determines how the grouped sensors are to be used. ? 0 (default) - the grouped sensors are used as a slider. all seven of the sensors are sampled together and may disabled as a whole using the gp_en (see section 6.15 ) or gsleep (see section 6.22 ) controls or individually (using the grouped sensor channel enable register - see section 6.34 ). alternately, each sensor may be disabled individually via the group sensor channel enable register. they will use the group threshold settings for all touch detections. ? 1 - the grouped sensors are used as separa te sensors and are not grouped. they will behave as follows: 1. each sensor will flag individual interrupts when a touch is detected. they will set the corresponding status bit in the button status 2 register. 2. the up / down, tap, or ph status bits will not be set for cs9, cs10, cs11, cs12, or cs13. no slide will be detected. 3. each sensor will use the group threshold settings. table 6.50 configuration 2 register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 40h r/w configuration 2 inv_ link_ tran -- blk_ pol_ mir show_ rf_ noise blk_ rf_ noise vol_ up_ down int_ rel_n 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 71 revision 1.1 (02-04-11) datasheet 4. each sensor can be individually enabled / di sabled via the grouped sensor enable register settings. 5. all sensors except cs8 and cs14 will use the button queue controls and repeat rates. 6. the cs8 and cs14 sensors will use the tap and press and hold logic as well as the group repeat rate settings. 7. all sensors will use the group max duration se ttings if this feature is enabled via the max_dur_en_g bit. 8. for cs8 and cs14, interrupts will be generated in the same way as they would be for a tap or press and hold event. this means that an interrupt will be gen erated on a touch. if the button is held, interrupts will be generated at the group repeat rate until the button is released. these buttons do not use the int_rel_n control and will only generate an interrupt when a touch is detected. 9. the cs8 sensor will be the designated down button. when a tap or press and hold event is detected, it will cause the down status bit to be set. the tap and ph status bits will be set normally. 10. the cs14 sensor will be the designated up button. when a tap or press and hold event is detected, it will cause the up status bit to be set. the tap and ph status bits will be set normally. bit 0 - int_rel_n - controls the interrupt behavior when a release is detected on a button. ? 0 (default) - an interrupt is generated when a press is detected and again when a release is detected and at the repeat rate (if enabled - see section 6.14 and section 6.33 ). ? 1 - an interrupt is generated when a press is detected and at the repeat rate (if enabled - see section 6.14 and section 6.33 ). 6.34 grouped sensor channel enable register the grouped sensor channel enable register enables sensors within grouped sensors to be sampled during the polling cycle. this register may be updated at any time. if the grouped sensors are treated as a group (see section 6.33 ), then disabling one or more sensors will cause the slider to behave erratically or not at all. bit 6 - cs14_en - enables the cs14 sensor to be sampled in the polling cycle. bit 5 - cs13_en - enables the cs13 sensor to be sampled in the polling cycle. bit 4 - cs12_en - enables the cs12 sensor to be sampled in the polling cycle. bit 3 - cs11_en - enables the cs11 sens or to be sampled in the polling cycle. bit 2 - cs10_en - enables the cs10 sensor to be sampled in the polling cycle. bit 1 - cs9_en - enables the cs9 sensor to be sampled in the polling cycle. bit 0 - cs8_en - enables the cs8 sensor to be sampled in the polling cycle. table 6.51 grouped sensor channel enable register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 41h r/w grouped sensor channel enable - cs14_ en cs13_ en cs12_ en cs11_ en cs10_ en cs9_ en cs8_ en 7fh downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 72 smsc cap1114 datasheet 6.35 proximity control register the proximity control register contro ls sensitivity settings for cs1. bit 7 - cs1_prox - determines the functionality of the cs1 channel. ? 0 (default) - the cs1 channel is not measurin g proximity. it will us e the standard button queue and data sensitivity controls. the averaging will be set to a value of 1. writing to the prox_avg[2:0] bits will change the averaging applied to cs1 (and only cs1). ? 1 - the cs1 channel is measuring proximity. it wi ll not use the queue. in add ition, the cs1 channel will not use the delta_shift[ 2:0] sensitivity settings and will instead use the prox_d_shift[2:0] settings. in proximity mode, the signal is boosted by 8x to detect very small capacitance changes. bit 6 - prox_sum - determines whether the cs1 channel averaging will perform an average or calculate the sum of the measured channel when comparing the delta count against the threshold. ? 0 (default) - when configured to detect prox imity, the cs1 channel delta counts will be the average. ? 1 - when configured to detect proximity, the cs1 channel will sum the results of the averages rather than report the true average. this value will be compared against the threshold normally. note that this mode is intended for very small signal detection. because the delta count is the summation of several consecutive measurements, it may become very large. adjustments to the sensitivity and threshold values will be required to maintain proper operation. bits 5 - 3 - prox_avg[1:0] - determines the averaging value used when cs1 is set to detect proximity. when averaging is enabled (i.e. not set at a value of 1), the cs1 sensor will be sampled the average number of times consecutively during the same polling cycle. the delta counts are summed and then divided by the number of averag es to get an average delta which is compared against the threshold normally. this will increase the time of t he polling cycle linearly with the number of averages taken. as the polling cycle time is used to set the update rate, repeat rate, and recalibration times, these will likewise increase. see ta b l e 6 . 5 3 . note 6.4 the polling time increase is based on the default sampling time as determined by the sampling configuration register (see section 6.37 ). table 6.52 proximity control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 42h r/w proximity control cs1_ prox prox_ sum - prox_avg [1:0] prox_d_sense[2:0] 02h table 6.53 prox_avg bit decode prox_avg[1:0] number of digital averages polling cycle time increase (see note 6.4 ) 10 0 0 16 (default) +38.4ms 0 1 32 +79.36ms 1 0 64 +161.28ms 1 1 128 +325.12ms downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 73 revision 1.1 (02-04-11) datasheet bits 2 - 0 - prox_d_sense[2:0] - controls the sensitivity of proximit y detection on cs1. the sensitivity settings act to scale the relative delta count value higher or lower based on the system parameters. a setting of 0000b is the most sensitive while a setting of 1111b is the least sensitive. at the more sensitive settin gs, touches are detected for a smaller delta c corresponding to a lighter touch. these settings are more sensitive to nois e, however, and a noisy environment may flag more false touches than less sensitive levels. see ta b l e 6 . 1 7 . 6.36 sampling channel select register the sampling channel select register determines wh ich (if any) capacitive sensor input is controlled by the sampling configuration register. bit 7 - gr_s - determines if all grouped sensors ar e controlled by the sampling configuration register settings. ? 0 (default) - the grouped sensors are not cont rolled by the sampling configuration register settings. all grouped sensors will be sampled in a 2.5ms window of the entire polling cycle (which requires 35ms). ? 1 - the grouped sensors are controlled by the sampling configuration register settings. each sensor sampling window will be determined based on these bit settings and the overall polling cycle time will increase. bit 6 - cs7_s - determines if capacitive touch se nsor 7 is controlled by the sampling configuration register settings. bit 5 - cs6_s - determines if capacitive touch se nsor 6 is controlled by the sampling configuration register settings. bit 4 - cs5_s - determines if capacitive touch se nsor 5 is controlled by the sampling configuration register settings. bit 3 - cs4_s - determines if capacitive touch se nsor 4 is controlled by the sampling configuration register settings. bit 2 - cs3_s - determines if capacitive touch se nsor 3 is controlled by the sampling configuration register settings. bit 1 - cs2_s - determines if capacitive touch se nsor 2 is controlled by the sampling configuration register settings. bit 0 - cs1_s - determines if capacitive touch se nsor 1 is controlled by the sampling configuration register settings. 6.37 sampling configuration register table 6.54 sampling channel select register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 4eh r/w sampling channel select gr_s cs7_s cs6_s cs5_s cs4_s cs3_s cs2_s cs1_s 00h table 6.55 sampling configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 4fh r/w sampling configuration -----o v e r s a m p _ r a t e [ 2 : 0 ]0 0 h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 74 smsc cap1114 datasheet the sampling configuration register controls the length of the sampling window of selected capacitive touch sensor channels as indicated in the sampling channel select register. increasing the sampling window time will have two effects. the first effect will be to increase the effective sensitivity of that particular channel so that a touch may be detected with a smaller c. however, at the larger sampling times, the resolution of the measurement is reduced. the second effect will be increase the overall round r obin rate (and all timing associated with the round robin rate such as re-calibra tion times, repeat rate times, and maximum duration times). all capacitive touch sensors default to a sampling time of 2.5ms. increasing the sampling time of any single channel will increase the overall polling cycle by the same amount. bits 2 - 0 - oversamp_rate[2:0] - determine the time to take a single sample. this setting applies to all selected sensors. 6.38 sensor base count registers table 6.56 oversamp_rate bit decode oversamp_rate[2:0] sensor sampling time 210 1 0 0 40.96ms 1 0 1 20.48ms 1 1 0 10.24ms 1115 . 1 2 m s 0 0 0 2.56ms (default) 0011 . 2 8 m s 0100 . 6 4 m s 0110 . 3 2 m s table 6.57 sensor base count registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 50h r sensor 1 base count 128 64 32 16 8 4 2 1 00h 51h r sensor 2 base count 128 64 32 16 8 4 2 1 00h 52h r sensor 3 base count 128 64 32 16 8 4 2 1 00h 53h r sensor 4 base count 128 64 32 16 8 4 2 1 00h 54h r sensor 5 base count 128 64 32 16 8 4 2 1 00h 55h r sensor 6 base count 128 64 32 16 8 4 2 1 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 75 revision 1.1 (02-04-11) datasheet the sensor base count registers store the calibrate d not touched input value from the capacitive touch sensor inputs. these registers are periodi cally updated by the re-calibration routine. the routine uses an internal adder to add the current count value for each reading to the sum of the previous readings until sample size has been reac hed. at this point, the upper 16 bits are taken and used as the sensor base count. the internal adder is then reset and the re-calibration routine continues. the data presented is determined by the base_shift bits (see section 6.13 ). 6.39 led status registers the led status registers indicate which led output has completed its actuated activity. the bits are cleared when the int bit has been cleared. likewise, these bits are cleared when the dsleep bit is set. 6.39.1 led status 1 bit 7 - led8_dn - indicates that led8 has finished its ramping behavior as determined by the led8_ctl bits. bit 6 - led7_dn - indicates that led7 has finished its ramping behavior as determined by the led7_ctl bits. 56h r sensor 7 base count 128 64 32 16 8 4 2 1 00h 57h r sensor 8 base count 128 64 32 16 8 4 2 1 00h 58h r sensor 9 base count 128 64 32 16 8 4 2 1 00h 59h r sensor 10 base count 128 64 32 16 8 4 2 1 00h 5ah r sensor 11 base count 128 64 32 16 8 4 2 1 00h 5bh r sensor 12 base count 128 64 32 16 8 4 2 1 00h 5ch r sensor 13 base count 128 64 32 16 8 4 2 1 00h 5dh r sensor 14 base count 128 64 32 16 8 4 2 1 00h table 6.58 led status registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 60h r led status 1 led8_ dn led7_ dn led6_ dn led5_ dn led4_ dn led3_ dn led2_ dn led1_ dn 00h 61h r led status 2 - - - - - led11_ dn led10_ dn led9_ dn 00h table 6.57 sensor base count registers (continued) addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 76 smsc cap1114 datasheet bit 5 - led6_dn - indicates that led6 has finished its ramping behavior as determined by the led6_ctl bits. bit 4 - led5_dn - indicates that led5 has finished its ramping behavior as determined by the led5_ctl bits. bit 3 - led4_dn - indicates that led4 has finished its ramping behavior as determined by the led4_ctl bits. bit 2 - led3_dn - indicates that led3 has finished its ramping behavior as determined by the led3_ctl bits. bit 1 - led2_dn - indicates that led2 has finished its ramping behavior as determined by the led2_ctl bits. bit 0 - led1_dn - indicates that led1 has finished its ramping behavior as determined by the led1_ctl bits. 6.39.2 led status 2 bit 2 - led11_dn - indicates that led11 has finished its ramping behavior as determined by the led3_ctl bits. bit 1 - led10_dn - indicates that led10 has fi nished its ramping behavior as determined by the led2_ctl bits. bit 0 - led9_dn - indicates that led9 has finished its ramping behavior as determined by the led1_ctl bits. 6.40 led / gpio direction register the led / gpio direction register controls the data flow direction for the led / gpio pins. each pin is controlled by a single bit. bit 7 - led8_dir - controls the direction of the led8 / gpio8 pin. ? 0 (default) - the led8 / gpio8 pin is configured as an input and cannot be used to drive an led. ? 1 - the led8 / gpio8 pin is configured as an output. bit 6 - led7_dir - controls the direction of the led7 / gpio7 pin. bit 5 - led6_dir - controls the direction of the led6 / gpio6 pin. bit 4 - led5_dir - controls the direction of the led5 / gpio5 pin. bit 3 - led4_dir - controls the direction of the led4 / gpio4 pin. bit 2 - led3_dir - controls the direction of the led3 / gpio3 pin. bit 1 - led2_dir - controls the direction of the led2 / gpio2 pin. bit 0 - led1_dir - controls the direction of the led1 / gpio1 pin. table 6.59 led / gpio direction register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 70h r/w led / gpio direction led8_ dir led7_ dir led6_ dir led5_ dir led4_ dir led3_ dir led2_ dir led1_ dir 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 77 revision 1.1 (02-04-11) datasheet 6.41 led / gpio output type register the led / gpio output type register controls the type of output for the ledx / gpiox pins that are configured to operate as outputs. each pin is controlled by a single bit. bit 7 - led8_ot - determines the output type of led8. ? 0 (default) - the led8 / gpio8 pin is an open-drain output with an external pull-up resistor. when the appropriate bit is set to the active state (logi c 1), the pin will be driven low. conversely, when the bit is set to the inactive state (logic 0), the pin will be left in a high-z state and pulled high via an external pull-up resistor. ? 1 - the ledx / gpio8 pin is a push-pull output. when driving a logic 1, the pin is driven high. when driving a logic 0, the pin is driven low. bit 6 - led7_ot - determines the output type of led7. bit 5 - led6_ot - determines the output type of led6. bit 4 - led5_ot - determines the output type of led5. bit 3 - led4_ot - determines the output type of led4. bit 2 - led3_ot - determines the output type of led3. bit 1 - led2_ot - determines the output type of led2. bit 0 - led1_ot - determines the output type of led1. 6.42 gpio input register the gpio input register reflects the state of t he ledx / gpiox pins. these bits are updated whenever the pin state changes regardless of the operation of the pin. if a ledx / gpiox pin is configured as an input (see section 6.40 ), when a pin changes states, the gpiox_sts bit is set. if the corresponding interrupt enable bit is also set, an interrupt will be asserted. table 6.60 led / gpio output type register a d d rr / wr e g i s t e rb 7 b 6b 5b 4b 3b 2b 1b 0d e f a u l t 71h r/w led / gpio output type led8_ ot led7_ ot led6_ ot led5_ ot led4_ ot led3_ ot led2_ ot led1_ ot 00h table 6.61 gpio input register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 72h r gpio input gpio8 gpio7 gpio6 gpio5 gpio4 gpio3 gpio2 gpio1 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 78 smsc cap1114 datasheet 6.43 led output control registers the led output control registers control the output state of the led pins when they are configured as outputs (see section 6.40, "led / gpio direction register" ). when these bits are set, the drive of the pin is determined by the output type and the polarity controls (see section 6.41, "led / gpio output type register" and section 6.44, "led polarity registers" ). the led polarity control register will determine th e non actuated state of the led pins. the actuated led behavior is determined by the led behavior controls (see section , "" ). 6.43.1 led output control 1 bit 7 - led8_dr - determines whether the led8 output is driven high or low. this led cannot be linked to a capacitive touch sensor. ? 0 (default) - the led8 output is driven at the minimum duty cycle or is not actuated. ? 1 - the led8 output is high -z or driven at the maximum duty cycle or is actuated. bit 6 - led7_dr - determines whether led7 output is driven high or low. bit 5 - led6_dr - determines whether led6 output is driven high or low. bit 4 - led5_dr - determines whether led5 output is driven high or low. bit 3 - led4_dr - determines whether led4 output is driven high or low. bit 2 - led3_dr - determines whether led3 output is driven high or low. bit 1 - led2_dr - determines whether led2 output is driven high or low. bit 0 - led1_dr - determines whether led1 output is driven high or low. 6.43.2 led output control 2 bit 2 - led11_dr - determines whether led11 is driven high or low. this led cannot be linked to a capacitive touch sensor. ? 0 (default) - the led11 output is driven at the minimum duty cycle or is not actuated ? 1 - the led11 output is high-z or driven at the maximum duty cycle or is actuated. bit 1 - led10_dr - determines whether led10 is driven hi gh or low. if this led is linked to the group of sensors, led9 is automatically linked to the group if sensors. bit 0 - led9_dr - determines whether led9 is driven high or low. table 6.62 led output control registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 73h r/w led output control 1 led8_ dr led7_ dr led6_ dr led5_ dr led4_ dr led3_ dr led2_ dr led1_ dr 00h 74h r/w led output control 2 led11_ dr led10_ dr led9_ dr 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 79 revision 1.1 (02-04-11) datasheet 6.44 led polarity registers the led polarity registers control the logical polari ty of the led outputs. when these bits are set or cleared, the corresponding led mirror controls are also set or cleared (unless the blk_pol_mir bit is set - see section 6.33 ). table 6.64, "led po larity behavior" shows the interaction between the polarity controls, output controls, and relative brightness. application note: the polarity controls determine the final led pi n drive. a touch on a linked capacitive touch sensor is treated in the same way as the led output control bit being set to a logic 1. application note: the led drive assumes that the leds are confi gured such that if the led pin is driven to a logic 0, the led will be on and the cap1114 led pin is sinking the led current. conversely, if the led pin is driven to a logic 1, the led will be off and there is no current flow. see figure 5.1, "system diagram for cap1114" . application note: this application note applies when the led polar ity is inverted (ledx_pol = 0). for led operation, the duty cycle se ttings determine the % of time th at the led pin will be driven to a logic 0 state in an invert ed system. the max duty cycle settings define the maximum % of time that the led pin will be driven low (i.e. maximum % of time that the led is on ) while the min duty cycle settings determine the mini mum % of time that the led pin will be driven low (i.e. minimum % of time that the led is on ). when there is no touch detected or the led output control register bit is at a logic 0 , the led output will be driven at the minimum duty cycle setting. breathe operatio ns will ramp the duty cycle from the minimum duty cycle to the maximum duty cycle. application note: this application note applies when the led polarity is non-inverted (ledx_pol = 1). for led operation, the duty cycle settings determine th e % of time that the led pin will be driven to a logic 1 state in a non-inverted system. the max duty cycle settings define the maximum % of time that the led pin will be driven high (i.e. maximum % of time that the led is off ) while the min duty cycle settings determ ine the minimum % of time that the led pin will be driven high (i.e. minimum % of time that the led is off ). when there is no touch detected or the led output contro l register bit is at a logic 0 , the led output will be driven at 100 minus the minimu m duty cycle setting. breathe operations wi ll ramp the duty cycle from 100 minus the minimum duty cycle to 100 minus the maximum duty cycle. application note: the led mirror controls (see section 6.46, "led mirror control" ) work with the polarity controls with respect to led brightness but will not have a direct effect on the output pin drive. table 6.63 led polarity registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 75h r/w led polarity 1 led8_ pol led7_ pol led6_ pol led5_ pol led4_ pol led3_ pol led2_ pol led1_ pol 00h 76h r/w led polarity 2 ----- led11_ pol led10_ pol led9_ pol 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 80 smsc cap1114 datasheet 6.44.1 led polarity 1 bit 7 - led8_pol - determines the polarity of the led8 output. ? 0 - the led8 output is inverted. for example, a setting of 1 in the led 8 output register will cause the led pin output to be driven to a logic 0. ? 1 - the led8 output is non-invert ed. for example, a setting of 1 in the led 8 output register will cause the led pin output to be driven to a logic 1 or left in the high-z state as determined by its output type. bit 6 - led7_pol - determines the polarity of the led7 output. bit 5 - led6_pol - determines the polarity of the led6 output. bit 4 - led5_pol - determines the polarity of the led5 output. bit 3 - led4_pol - determines the polarity of the led4 output. bit 2 - led3_pol - determines the polarity of the led3 output. bit 1 - led2_pol - determines the polarity of the led2 output. bit 0 - led1_pol - determines the polarity of the led1 output. 6.44.2 led polarity 2 bit 2 - led11_pol - determines the polarity of the led11 output. bit 1 - led10_pol - determines the polarity of the led10 output. bit 0 - led9_pol - determines the polarity of the led9 output. table 6.64 led polarity behavior led output control register polarity max duty min duty brightness led appearance 0 inverted (0) not used minimum % of time that the led is on (logic 0) maximum brightness at min duty cycle on at min duty cycle 1 inverted (0) maximum % of time that the led is on (logic 0) minimum % of time that the led is on (logic 0) maximum brightness at max duty cycle. brightness ramps from min duty cycle to max duty cycle. according to led behavior 0 non- inverted (1) not used minimum % of time that the led is off (logic 1) maximum brightness at 100 minus min duty cycle on at 100 - min duty cycle 1 non- inverted (1) maximum % of time that the led is off (logic 1) minimum % of time that the led is off (logic 1) for direct behavior, maximum brightness is 100 minus max duty cycle. when breathing, max brightness is 100 minus min duty cycle. brightness ramps from 100 - min duty cycle to 100 - max duty cycle. according to led behavior downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 81 revision 1.1 (02-04-11) datasheet 6.45 linked led transition control registers the linked led transition control registers contro l the led drive when the led is linked to a capacitive touch sensor. these controls wo rk in conjunction inv_link_tran bit (see section 6.33, "configuration 2 register" ) to create smooth transitions from host control to linked leds. 6.45.1 linked led transition control 1 - 77h bit 6 - led7_ltran - determines the transi tion effect when led7 is linked to cs7. ? 0 (default) - when the led output control bit for cs7 is 1, and then cs7 is linked to led7 and no touch is detected, the led will change states. ? 1 - if the inv_link_tran bit is 1, when the le d output control bit for cs7 is 1, and then cs7 is linked to led7 and no touch is detected, the led will not change states. in addition, the led state will change when the sensor is touched. if the inv_link _tran bit is 0, when the led output control bit for cs7 is 1, and then cs7 is linked to led7 and no touch is detected, the led will not change states. however, the led state will not change when the sensor is touched. application note: if the led behavior is not direct and the inv _link_tran bit it 0, the led will not perform as expected when the led7_ltran bit is set to 1. therefore, if breathe and pulse behaviors are used, set the inv_link_tran bit to 1. bit 5 - led6_ltran - determines the transi tion effect when led6 is linked to cs6. bit 4 - led5_ltran - determines the transi tion effect when led5 is linked to cs5. bit 3 - led4_ltran - determines the transi tion effect when led4 is linked to cs4. bit 2 - led3_ltran - determines the transi tion effect when led3 is linked to cs3. bit 1 - led2_ltran - determines the transi tion effect when led2 is linked to cs2. bit 0 - led1_ltran - determines the transi tion effect when led1 is linked to cs1. 6.45.2 linked led transition control 2 - 78h bit 1 - led10_ltran - determines the transition effect when led10 is linked to the grouped sensors. bit 0 - led9_ltran - determines the transition effect when led9 is linked to the grouped sensors. table 6.65 linked led transition control registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 77h r/w linked led transition control 1 - led7_ ltran led6_ ltran led5_ ltran led4_ ltran led3_ ltran led2_ ltran led1_ ltran 00h 78h r/w linked led transition control 2 ------ led10_ ltran led9_ ltran 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 82 smsc cap1114 datasheet 6.46 led mirror control the led mirror control registers determine the meaning of duty cycle settings when polarity is non- inverted for each led channel. when the polarity bit is set to 1 (non-inverted) , to obtain correct steps for led ramping, pulse, and breathe behaviors, t he min and max duty cycles need to be relative to 100%, rather than the default, which is relative to 0%. application note: the led drive assumes that the leds are confi gured such that if the led pin is driven to a logic 0, the led will be on and the cap1114 led pin is sinking the led current. when the polarity bit is set to 1, it is considered n on-inverted. for systems using the opposite led configuration, mirror controls would apply when the polarity bit is 0. these bits are changed automatically if the corresponding led polarity bit is changed (unless the blk_pol_mir bit is set - see section 6.33 ). 6.46.1 led mirror control 1 - 79h bit 7 - led8_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. ? 0 (default) - the duty cycle settings are determined relative to 0% and are determined directly with the settings. ? 1 - the duty cycle settings ar e determined rela tive to 100%. bit 6 - led7_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 5 - led6_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 4 - led5_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 3 - led4_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 2 - led3_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 1 - led2_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 0 - led1_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. table 6.66 led mirror control registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 79h r/w led mirror control 1 led8_ mir _ en led7_ mir _ en led6_ mir _ en led5_ mir _ en led4_ mir _ en led3_ mir _ en led2_ mir _ en led1_ mir _ en 00h 7ah r/w led mirror control 2 ----- led11_ mir _ en led10_ mir _ en led9_ mir _ en 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 83 revision 1.1 (02-04-11) datasheet 6.46.2 led mirror control 2 - 7ah bit 2 - led11_mir_en - determines whether the duty cycle settings are biase d relative to 0% or 100% duty cycle. bit 1 - led10_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. bit 0 - led9_mir_en - determines whether the duty cycle settings are biased relative to 0% or 100% duty cycle. 6.47 sensor led linking register the sensor led linking register controls whether a capacitive touch sensor is linked to an led output or not. if the corresponding bit is set, th e appropriate led output will change states defined by the led behavior controls (see section ) in response to the capacitive touch sensor. if the led channel is configured as an input, t he corresponding sensor led linking bit is ignored. bit 7 - up_down_link - links the led10 output to a detected up condition on the group including a slide in the up direction, a tap on the up si de of the group or a press and hold condition on the up side of the group. the led10 driver w ill be actuated and will behave as determined by the led10_ctl bits. this bit also links the led9 output to a detected down condition on the group including a slide in the down direction, a tap on the down side of the group or a press and hold condition on the down side of the group. the led9 driver will be actuated and will behave as determined by the led9_ctl bits. led9 and led10 will not be active simultaneously. if led9 is actuated by det ecting a slide, tap, or press and hold event, led10 will be inactive. likewise , if led10 is actuated by detecting a slide, tap, or press and hold event, led9 will be inactive. bit 6 - cs7_led7 - links the led7 output to a detected touch on the cs7 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. ? 0 - the led7 output is not associated with the cs 7 input. if a touch is de tected on the cs7 input, the led will not automatically be actuated. the le d is enabled and controlled via the led output configuration register (see section 6.43 ) and the led behavior registers (see section ). ? 1 - the led 7 output is associated with the cs7 in put. if a touch is detected on the cs7 input, the led will be actuated and behave as defined in table 6.69 . furthermore, the led will automatically be enabled. bit 5 - cs6_led6 - links the led6 output to a detected touch on the cs6 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. bit 4 - cs5_led5 - links the led5 output to a detected touch on the cs5 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. bit 4 - cs4_led4 - links the led4 output to a detected touch on the cs4 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. bit 2 - cs3_led3 - links the led3 output to a detected touch on the cs3 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. table 6.67 sensor led linking register a d d rr / wr e g i s t e r b 7 b 6b 5b 4b 3b 2b 1b 0d e f a u l t 80h r/w sensor led linking up_ down _ link cs7_ led7 cs6_ led6 cs5_ led5 cs4_led4 cs3_led3 cs2_ led2 cs1_ led1 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 84 smsc cap1114 datasheet bit 1 - cs2_led2 - links the led2 output to a detected touch on the cs2 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. bit 0 - cs1_led1 - links the led1 output to a detected touch on the cs1 sensor. when a touch is detected, the led is actuated and will behave as determined by the led behavior controls. 6.48 led behavior registers the led behavior registers control the operation of leds. each ledx / gpiox pin is controlled by a 2-bit field. if the ledx / gpiox pin is c onfigured as an input, these bits are ignored. if the corresponding led output is linked to a capa citive touch sensor, the appropriate behavior will be enabled / disabled based on touches and releases. if the led output is not associated with a capaci tive touch sensor, the appropriate behavior will be enabled / disabled by the led output control register. if the respective ledx_dr bit is set to a logic 1, this will be associated as a t ouch, and if the ledx_dr bit is set to a logic 0, this will be associated as a release. table 6.69 shows the behavior triggers. the defined behavior will activate when the start trigger is met and will stop when the stop trigger is met. note the behavior of the breathe hold and pulse release option. the led polarity control register will determin e the non actuated state of the led outputs (see section 6.44, "led polarity registers" ). application note: if an led is not linked to a capacitive t ouch sensor and is breathing (via the breathe or pulse behaviors), it must be unactuated befo re any changes to behavior are processed. application note: if an led is not linked to the capacitive touc h sensor and configured to operate using pulse 1 behavior, the circuitry will only be actuated when the corresponding bit is set. it will not check the bit condition until the pulse 1 behavi or is finished. the device will not remember if the bit was cleared and reset while it was actuated. application note: if an led is actuated and it is switched from linked to a capacitive touch sensor to unlinked (or vice versa), the led will respond to the ne w command source immediately if the behavior was direct or breathe. for pulse behaviors, it will complete the behavior already in progress. for example, if a linked led was actuated by a touch and the control is changed so that it is unlinked, it will check the status of the corr esponding led output cont rol bit. if that bit is 0, the led will behave as if a release wa s detected. likewise, if an unlinked led was actuated by the led output control register and the control is changed so that it is linked and no touch is detected, the led will b ehave as if a release was detected. 6.48.1 led behavior 1 - 81h bits 7 - 6 - led4_ctl[1:0] - determines the behav ior of led4 / gpio4 when configured to operate as an led output. table 6.68 led behavior registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 81h r/w led behavior 1 led4_ctl[1:0] led3_ctl[1:0] led2_ctl[1:0] led1_ctl[1:0] 00h 82h r/w led behavior 2 led8_ctl[1:0] led7_ctl[1:0] led6_ctl[1:0] led5_ctl[1:0] 00h 83h r/w led behavior 3 led11_alt [1:0] led11_ctl [1:0] led10_ctl [1:0] led9_ctl[1:0] 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 85 revision 1.1 (02-04-11) datasheet bits 5 - 4 - led3_ctl[1:0] - determines the behav ior of led3 / gpio3 when configured to operate as an led output. bits 3 - 2 - led2_ctl[1:0] - determines the behav ior of led2 / gpio2 when configured to operate as an led output. bits 1 - 0 - led1_ctl[1:0] - determines the behav ior of led1 / gpio1 when configured to operate as an led output. 6.48.2 led behavior 2 - 82h bits 7 - 6 - led8_ctl[1:0] - determines the behav ior of led8 / gpio8 when configured to operate as an led output. bits 5 - 4 - led7_ctl[1:0] - determines the behav ior of led7 / gpio7 when configured to operate as an led output. bits 3 - 2 - led6_ctl[1:0] - determines the behav ior of led6 / gpio6 when configured to operate as an led output. bits 1 - 0 - led5_ctl[1:0] - determines the behav ior of led5 / gpio5 when configured to operate as an led output. 6.48.3 led behavior 3 - 83h bits 7 - 6 - led11_alt[1:0] - determines the behav ior of led 11 when the pwr_led bit is set and either the sleep or dsleep bits are set (see section 6.1 ). bits 5 - 4 - led11_ctl[1:0] - determines the behavior of led11 when the pwr_led bit is set and both the sleep and dsleep bits are not set (see section 6.1 ). bits 3 - 2 - led10_ctl[1:0] - determines the behavior of led10. bits 1 - 0 - led9_ctl[1:0] - determines the behavior of led9. application note: when driving the led / gpiox ou tput as a gpo, the ledx_ctl[1:0] bits should be set to 00b. table 6.69 ledx_ctl bit decode ledx_ctl [1:0] operation description start trigger stop trigger 10 0 0 direct the led is driven to the programmed state (active or inactive). see figure 6.5 touch detected or led output control bit set release detected or led output control bit cleared 01 p u l s e 1 the led will pulse a programmed number of times. during each pulse the led will breathe up to the maximum brightness and back down to the minimum brightness so that the total pulse period matches the programmed value. touch or release detected or led output control bit set or cleared (see section 6.49 ) n/a downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 86 smsc cap1114 datasheet application note: the pwm frequency is determined based on the selected led behavior, the programmed breathe period, and the programmed min and max duty cycles. for the direct behavior mode, the pwm frequency is calculated based on the programmed rise and fall times. if these are set at 0, the maximum pwm frequency will be used based on the programmed duty cycle settings. 6.49 led pulse 1 period register the led pulse 1 period register determines the ov erall period of a pulse operation as determined by the led_ctl registers (see ta b l e 6 . 6 9 - setting 01b). each lsb represents 32ms so that a setting of 14h (20d) would represent a period of 640ms. the to tal range is from 32ms to 4.06 seconds as shown in ta b l e 6 . 7 1 . the number of pulses is programmable as determined by the pulse1_cnt bits (see section 6.52 ). bit 7 - st_trig - determines the start trigger for the led pulse behavior. ? 0 (default) - the led will pulse when a touch is detected or the drive bit is set. ? 1 - the led will pulse when a release is detected or the drive bit is cleared. the pulse 1 operation is shown in figure 6.1 (non-inverted polarity ledx_pol = 1) and figure 6.2 (inverted polarity ledx_pol = 0). 1 0 pulse 2 the led will pulse when the start trigger is detected. when the stop trigger is detected, it will pulse a programmable number of times then return to its minimum brightness. touch detected or led output control bit set release detected or led output control bit cleared 1 1 breathe the led will breathe. it will be driven with a duty cycle that ramps up from the programmed minimum duty cycle (default 0%) to the programmed maximum duty cycle (default 100%) and then back down. each ramp takes up 50% of the programmed period. the total period of each breath is determined by the led breathe period controls - see section 6.51 . touch detected or led output control bit set release detected or led control output bit cleared table 6.70 led pulse 1 period register a d d rr / w r e g i s t e r b 7 b 6b 5b 4b 3b 2 b 1 b 0d e f a u l t 84h r/w led pulse 1 period st_ trig p1_ per6 p1_ per5 p1_ per4 p1_ per3 p1_ per2 p1_ per1 p1_ per0 20h table 6.69 ledx_ctl bit decode (continued) ledx_ctl [1:0] operation description start trigger stop trigger 10 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 87 revision 1.1 (02-04-11) datasheet . figure 6.1 pulse 1 behavior with touch trigger and non-inverted polarity figure 6.2 pulse 1 behavior with touch trigger and inverted polarity table 6.71 led pulse / breathe period example setting (hex) setting (decimal) total pulse / breathe period (ms) 00h 0 32 01h 1 32 02h 2 64 03h 3 96 04h 4 128 normal C untouched operation normal C untouched operation touch detected (100% - pulse 1 max duty cycle) * brightness x pulses after touch pulse 1 period (p1_per) (100% - pulse 1 min duty cycle) * brightness led brightness normal C untouched operation normal C untouched operation touch detected pulse 1 min duty cycle * brightness x pulses after touch pulse period (p1_per) pulse 1 max duty cycle * brightness led brightness downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 88 smsc cap1114 datasheet 6.50 led pulse 2 period register the led pulse 2 period register determines the ov erall period of a pulse operation as determined by the led_ctl registers (see ta b l e 6 . 6 9 - setting 10b). each lsb represents 32ms so that a setting of 14h (20d) would represent a period of 640ms. the total range is from 32ms to 4.06 seconds (see table 6.71 ). the number of pulses is programmable as determined by the pulse2_cnt bits (see section 6.52 ). the pulse 2 behavior is shown in figure 6.3 (non-inverted polarity ledx_pol = 1) and figure 6.4 (inverted polarity ledx_pol = 0). . . . . . . . . . 7ch 124 3,968 7dh 125 4,000 7eh 126 4,032 7fh 127 4.064 table 6.72 led pulse 2 period register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 85h r/w led pulse 2 period - p2_ per6 p2_ per5 p2_ per4 p2_ per3 p2_ per2 p2_ per1 p2_ per0 14h figure 6.3 pulse 2 behavior with non-inverted polarity table 6.71 led pulse / breathe period example (continued) setting (hex) setting (decimal) total pulse / breathe period (ms) . . . normal C untouched operation normal C untouched operation touch detected (100% - pulse 2 min duty cycle) * brightness (100% - pulse 2 max duty cycle) * brightness x - 1 additional pulses after release release detected pulse period (p2_per) led brightness downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 89 revision 1.1 (02-04-11) datasheet 6.51 led breathe period register the led breathe period register determines the ov erall period of a breathe operation as determined by the led_ctl registers (see ta b l e 6 . 6 9 - setting 11b). each lsb represents 32ms so that a setting of 14h (20d) would represent a period of 640ms. t he total range is from 32ms to 4.06 seconds (see table 6.71 ). 6.52 led configuration register the led configuration register controls the number of pulses that are sent for the pulse 1 and pulse 2 led output behaviors. bit 6 - ramp_alert - determines whether the devic e will assert the alert pin when leds actuated by the led output control register bits have finished their respective behaviors. ? 0 (default) - the alert pin will not be asserted when leds actu ated by the led output control register have finished their programmed behaviors. ? 1 - the alert pin will be asserted whenever any led that is actuated by the led output control register has finished it s programmed behavior. if the dsleep bit is set, this bit is cleared. figure 6.4 pulse 2 behavior with inverted polarity table 6.73 led breathe period register a d d rr / w r e g i s t e r b 7 b 6b 5b 4b 3b 2 b 1 b 0d e f a u l t 86h r/w led breathe period - br_ per6 br_ per5 br_ per4 br_ per3 br_ per2 br_ per1 br_ per0 5dh table 6.74 led configuration registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 88h r/w led config - ramp_ alert pulse2_cnt[2:0] pulse1_cnt[2:0] 24h normal C untouched operation normal C untouched operation touch detected pulse 2 max duty cycle * brightness pulse 2 min duty cycle * brightness x - 1 additional pulses after release release detected pulse period (p2_per) led brightness . . . downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 90 smsc cap1114 datasheet bits 5 - 3 - pulse2_cnt[2:0] - determines the number of pulses used for the pulse 2 behavior as shown in ta b l e 6 . 7 5 . the default is 100b. bits 2 - 0 - pulse1_cnt[2:0] - determines the number of pulses used for the pulse 1 behavior as shown in ta b l e 6 . 7 5 . 6.53 led pulse and breath e duty cycle registers the led pulse and breathe duty cycle register s determine the minimum and maximum duty cycle settings used for the led for each led behavior. these settings affect the brightness of the led when it is fully off and fully on. the led driver duty cycle will ramp up from the minimum duty cycle to the maximum duty cycle and back down again. application note: when operating in direct behavior mode, changes to the duty cycle settings will be applied immediately. when operating in breathe, puls e 1, or pulse 2 modes, the led must be unactuated and then re-actuated before changes to behavior are processed. bits 7 - 4 - led_x_max_duty[3:0] - determines the maximum pwm duty cycle for the led drivers as shown in table 6.77 . table 6.75 pulse_cnt decode pulsex_cnt[2:0] number of breaths 21 0 00 0 1 00 1 2 01 0 3 01 1 4 1 0 0 5 (default) 10 1 6 11 0 7 11 1 8 table 6.76 led period and breathe duty cycle registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 90h r/w led pulse 1 duty cycle led_p1_max_duty[3:0] led_ p1_min_duty[3:0] f0h 91h r/w led pulse 2 duty cycle led_p2_max_duty[3:0] led_ p2_min_duty[3:0] f0h 92h r/w led breathe duty cycle led_br_max_duty[3:0] led_ br_min_duty[3:0] f0h 93h r/w direct duty cycle led_dr_max_duty[3:0] led_dr_min_duty[3:0] f0h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 91 revision 1.1 (02-04-11) datasheet bits 3 - 0 - led_x_min_duty[3:0] - determines the minimum pwm duty cycle for the led drivers as shown in table 6.77 . 6.54 led direct ramp rates register the led direct ramp rates register control the rising and falling edge time of an led that is configured to operate in direct behavior mode. the rising edge time corresponds to the amount of time the led takes to transition from its minimum duty cycle to its maximum duty cycle. conversely, the falling edge time corresponds to the amount of time that the led takes to transition from its maximum duty cycle to its minimum duty cycle. bits 5 - 3 - rise_rate[2:0] - determines the rising edge time of an led when it transitions from its minimum drive state to its maximum drive state as shown in table 6.79 . table 6.77 led duty cycle decode x_max/min_duty [3:0] maximum duty cycle minimum duty cycle 3210 0 0 0 0 7% 0% 0 0 0 1 9% 7% 0010 1 1 % 9 % 0011 1 4 % 1 1 % 0 1 0 0 17% 14% 0 1 0 1 20% 17% 0 1 1 0 23% 20% 0 1 1 1 26% 23% 1 0 0 0 30% 26% 1 0 0 1 35% 30% 1 0 1 0 40% 35% 1 0 1 1 46% 40% 1 1 0 0 53% 46% 1 1 0 1 63% 53% 1 1 1 0 77% 63% 1 1 1 1 100% 77% table 6.78 led direct ramp rates register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 94h r/w led direct ramp rates - - rise_rate[2:0] fall_rate[2:0] 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 92 smsc cap1114 datasheet application note: if a non-zero fall time is desired, the rise rate must be set to be equal to the desired fall rate. this should be done as a register write after the led has been actuated and before it is unactuated. bits 2 - 0 - fall_rate[2:0] - determines the falling edge time of an led when it transitions from its maximum drive state to its minimum drive state as shown in table 6.79 . 6.55 led off delay register the led off delay register determines the amount of time an led in direct behavior mode remains active after it is no longer actuated (such as after a release has been detected or the drive state has been changed). bits 2 - 0 - dir_off_dly[2:0] - determines the turn-off delay, as shown in ta b l e 6 . 8 1 , for all leds that are configured to operate in direct behavior mode. table 6.79 rise / fall rate cycle decode rise/fall_rate [2:0] rise / fall time (t rise / t fall ) 21 0 00 0 0 0 0 1 250ms 0 1 0 500ms 0 1 1 750ms 10 0 1 s 10 1 1 . 2 5 s 11 0 1 . 5 s 11 1 2 s table 6.80 led off delay register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 95h r/w led off delay register - - - - - dir_off_dly [2:0] 00h table 6.81 off delay settings dir_off_dly [2:0 off delay t off_dly 210 000 0 001 0 . 5 s 010 1 . 0 s 011 1 . 5 s downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 93 revision 1.1 (02-04-11) datasheet the direct behavior operation is shown determined by the combination of programmed rise time, fall time, and off delay as shown in figure 6.5 (non-inverted polarity ledx_pol = 1) and figure 6.6 (inverted polarity ledx_pol = 0). 100 2 . 0 s 101 3 . 0 s 110 4 . 0 s 111 5 . 0 s figure 6.5 direct behavior for non-inverted polarity figure 6.6 direct behavior for inverted polarity table 6.81 off delay settings (continued) dir_off_dly [2:0 off delay t off_dly 210 normal C untouched operation rise_rate setting (t rise ) (100% - max duty cycle) * brightness touch detected release detected off delay (t off_dly ) fall_rate setting (t fall ) normal C untouched operation (100% - min duty cycle) * brightness led brightness normal C untouched operation rise_rate setting (t rise ) min duty cycle * brightness touch detected release detected off delay (t off_dly ) fall_rate setting (t fall ) normal C untouched operation max duty cycle * brightness led brightness downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 94 smsc cap1114 datasheet 6.56 sensor calibration registers table 6.82 sensor calibration registers addr register r/w b7 b6 b5 b4 b3 b2 b1 b0 default b1h sensor 1 calibration r cal1_9 cal1_8 cal1_7 cal1_6 cal1_5 cal1_4 cal1_3 cal1_2 00h b2h sensor 2 calibration r cal2_9 cal2_8 cal2_7 cal2_6 cal2_5 cal2_4 cal2_3 cal2_2 00h b3h sensor 3 calibration r cal3_9 cal3_8 cal3_7 cal3_6 cal3_5 cal3_4 cal3_3 cal3_2 00h b4h sensor 4 calibration r cal4_9 cal4_8 cal4_7 cal4_6 cal4_5 cal4_4 cal4_3 cal4_2 00h b5h sensor 5 calibration r cal5_9 cal5_8 cal5_7 cal5_6 cal5_5 cal5_4 cal5_3 cal5_2 00h b6h sensor 6 calibration r cal6_9 cal6_8 cal6_7 cal6_6 cal6_5 cal6_4 cal6_3 cal6_2 00h b7h sensor 7 calibration r cal7_9 cal7_8 cal7_7 cal7_6 cal7_5 cal7_4 cal7_3 cal7_2 00h b8h sensor 8 calibration r cal8_9 cal8_8 cal8_7 cal8_6 cal8_5 cal8_4 cal8_3 cal8_2 00h b9h sensor 9 calibration r cal9_9 cal9_8 cal9_7 cal9_6 cal9_5 cal9_4 cal9_3 cal9_2 00h bah sensor 10 calibration r cal10_ 9 cal10_ 8 cal10_ 7 cal10_ 6 cal10_ 5 cal10_ 4 cal10_ 3 cal10_ 2 00h bbh sensor 11 calibration r cal11_ 9 cal11_ 8 cal11_ 7 cal11_6 cal11_ 5 cal11_ 4 cal11_ 3 cal11_ 2 00h bch sensor 12 calibration r cal12_ 9 cal12_ 8 cal12_ 7 cal12_ 6 cal12_ 5 cal12_ 4 cal12_ 3 cal1_2 2 00h bdh sensor 13 calibration r cal13_ 9 cal13_ 8 cal13_ 7 cal13_ 6 cal13_ 5 cal13_ 4 cal13_ 3 cal13_ 2 00h beh sensor 14 calibration r cal14_ 9 cal14_ 8 cal14_ 7 cal14_ 6 cal14_ 5 cal14_ 4 cal14_ 3 cal14_ 2 00h d0h sensor 1 calibration low byte r cal4_1 cal4_0 cal3_1 cal3_0 cal2_1 cal2_0 cal1_1 cal1_0 00h d1h sensor 5 calibration low bye r cal8_1 cal8_0 cal7_1 cal7_0 cal6_1 cal6_0 cal5_1 cal5_0 00h d2h sensor 9 calibration low bye r cal12_ 1 cal12_ 0 cal11_ 1 cal11_0 cal10_ 1 cal10_ 0 cal9_1 cal9_0 00h d3h sensor 13 calibration low bye r- - - - cal14_ 1 cal14_ 0 cal13_ 1 cal13_ 0 00h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 95 revision 1.1 (02-04-11) datasheet the sensor calibration registers hold the 10-bit va lue that is used for the analog block when each sensor is selected. these register s are read only. they are updated automatically by the digital block when the analog re-calibration routine is performed. these bits are cleared when the device is placed in to standby or deep sleep for all channels that are not sampled. 6.57 product id register the product id register stores a unique 8-bit value that identifies the device. 6.58 revision register the revision register stores an 8-bit va lue that represents the part revision. table 6.83 product id register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default f d hr p r o d u c t i d 00111010 3 a h table 6.84 revision register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default f f hr r e v i s i o n 10000000 8 0 h downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 96 smsc cap1114 datasheet chapter 7 package information 7.1 package drawings figure 7.1 package diagram - 32-pin qfn downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 97 revision 1.1 (02-04-11) datasheet figure 7.2 package dimensions - 32-pin qfn downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 98 smsc cap1114 datasheet figure 7.3 package pcb land pattern and stencil figure 7.4 package detail a - stencil opening and perimeter lands downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 99 revision 1.1 (02-04-11) datasheet figure 7.5 package detail b - thermal vias and stencil opening figure 7.6 package land pattern dimensions downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 100 smsc cap1114 datasheet 7.2 package marking all packages will marked as shown in figure 7.7 . figure 7.7 package markings bottom bottom marking not allowed line 1 C smsc logo line 2 C device number, version line 3 - revision, year, week, 4-digit engineering code (ryywwxxxx) line 4 C lot number lines 5: best fit between pin 1 mark and pb-free symbol pb-free/green symbol (matte sn) 0.4 4x 1.3pt top a c e3 pin 1 - v r minimum circle r diameter = 0.80mm line 5 C vendor id and country code (vv C cc) lines 1, 2, 3, & 4: center horizontal alignment p 11 ry wwxxx x 8h12 3456a vv - cc y 1 4 downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet smsc cap1114 101 revision 1.1 (02-04-11) datasheet chapter 8 datasheet revision history table 8.1 customer revision history revision level & date secti on/figure/entry correction rev. 1.1 (02-04-11) cover righttouch logo added. features added: proximity detection under capacitive touch inputs section 6.35, "proximity control register" modified cs1_prox and prox_sum descriptions chapter 1, delta from cap1014 to cap1114 added delta chapter table 3.2, "electrical specifications" completed electrical specification values. changed time to communications (t comm ) spec. from 15ms max to 15ms typ and 20ms max. added drive frequency spec of 2khz. figure 5.1, "system diagram for cap1114" added resistors to led lines. section 5.1, "power states" description for dsleep recommended disabling leds. except for led11, leds are driven to non- actuated state with no pwm operations. users can decide whether to disable or not. section 6.1, "main status control register" description for dsleep set to 1 said leds (except led11) are disabled. instead, they are driven to their programmed non-actuated state and no pwm operations will be done. section 6.33, "configuration 2 register" renamed inv_link_pol to inv_link_tran. it pertains to linked led transition controls. section 6.35, "proximity control register" added. section 6.43, "led output control registers" when leds are not linked to capacitive touch sensor channels, led behaviors can still be used. a bit setting of 1 is activated. section 6.44, "led polarity registers" split second application note into three notes to separate inverted versus non-inverted behavior and raise the importance of the assumption of how leds are connected. added reference to system diagram. clarified description of bit settings. ledx_pol = 0 is inverted system, and ledx_pol = 1 is non-inverted system. table 6.64, "led polarity behavior" updated table to reflect actual behavior. section 6.45, "linked led transition control registers" updated. these controls work with the inv_link_tran bit (not polarity). section 6.46, "led mirror control" updated to clarify. section 6.48, "led behavior registers" if an led is not linked and breathing, it must be unactuated for behavior changes to take effect. clarified explanation of how triggers start and stop. downloaded from: http:///
multiple channel capacitive touch sensor and led driver datasheet revision 1.1 (02-04-11) 102 smsc cap1114 datasheet section 6.49, "led pulse 1 period register" removed mirrored figures as behavior is the same. st_trig applies to host drive, too. section 6.50, "led pulse 2 period register" the pulse during which the release is detected counts as one of the pulses. section 6.53, "led pulse and breathe duty cycle registers" duty cycle changes are only applied immediately in direct behavior. removed incorrect application note. section 6.54, "led direct ramp rates register" ramp rates apply to host control, too. table 6.79, "rise / fall rate cycle decode" for 750ms, bit settings are 011 instead of 111. section 6.55, "led off delay register" removed: this register is only used if the led is linked to a capacitive touch sensor. rev. 1.0 (12-09-09) formal release table 8.1 customer revision history (continued) revision level & date secti on/figure/entry correction downloaded from: http:///


▲Up To Search▲   

 
Price & Availability of CAP1114-1-EZK-TR

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X